Urgent :: Scan Barcode

AngeloAngelo Member Posts: 180
Hi Navision Masters,

I would like to know whether a certain field can be scanned through barcode scanner but cannot be input through keyboard for certain user but other user can be input the field through keyboard and scanner ?

Please advise soon....

Comments

  • kinekine Member Posts: 12,562
    It depend, how the scanner is connected. If it is some sort of keyboard scanner, there is no way how to check if the chars are incoming through scanner or keyboard... if it is sort of scanner which is controlled through some communication library, you can programm what you want...

    I assume that you have some keyboard scanner - in this case, I think, that answer is NO. You cannot distinguish between the source of keys... You can only check what is incoming - for example in many cases are in barcode coded some prefixes which are not imputet through keyboard and are not on the label - for example :

    On label you have barcode with text 1000 but if you read it with scanner you see, that in barcode is text Q1000 which means that it is barcode for quantity. If you in your field on imput check, if you are inserting the Q, you can refuse the input... but you cannot control, if user enter the Q manually...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • KowaKowa Member Posts: 925
    edited 2005-03-10
    There is a form field trigger "OnInputChange" which you can use to test how fast the inputs are coming in to decide whether it is a scan or manual input.
    Create a function to check out the time elapsed since last input.

    Then create new roles for scan and noscan and assign the users to them.

    Use Table 2000000003 "Member of" in the "OnValidate" Trigger of the form to check if the user is a member of this group and is executing a permitted action.
    Kai Kowalewski
  • kinekine Member Posts: 12,562
    What about testing if chars are entered through clipboard (fast)? ;-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • AngeloAngelo Member Posts: 180
    How to check out the time elapse in Navision?I never use it...please advise me....

    How about clipboard?I dont understand...please tell me....
  • KowaKowa Member Posts: 925
    What Kine meant that a user can mark a value, type CTRL + C (Copy to clipboard) and then type CTRL +V (Insert from Clipboard) when the cursor is in the field.:roll:
    So it would be neccessary to distinguish between very fast (clipboard) , fast ( scanner) and slow (manual entry). Scanners can usually be configured.

    You can use the system variable TIME to check the time elapsed between calling functions, but the programming is a little bit more complicated.. #-o
    Kai Kowalewski
Sign In or Register to comment.