Urgent :: Scan Barcode

Angelo
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....
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....
0
Comments
-
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...0 -
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 Kowalewski0 -
What about testing if chars are entered through clipboard (fast)? ;-)0
-
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....0 -
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.. #-oKai Kowalewski0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions