Hi
I have to produce a solution that will scan 2d barcodes and authenticate the results against a database. Whilst I can see this is not in its self hard to do I am having a mental block as to how to do this in a kiosk type environment ie unattended.
The onDataChange event requires you to tab or click once the item has been entered - with limited access and lots of scans thats going to be hard
I cant find a plugin that handles this - what is needed is a listener and I certainly dont have time/knowledge to produce one
I am not sure that running some sort of loop/listener is a great idea, does this suck up memory ?
In the loop/listner context what would happen if the scanner was half way through loading the string into the field when the loop triggered - an error I guess
As we have potentially 10k people about to need to use it to gain access to a FREE BAR !! it would be good to have an elegant solution, so any ideas would be very much appreciated
Cheers
Hi Gordon,
What is your exact question ? You need a bean/plugin for a scanner ? (do you already have a scanner?)
Or is the question how to work with this bean/plugin ?
Hi
I have a scanner and it works fine reading 2d barcodes.
IF you select a Servoy field it will write the contents of the barcode into the field as a string
The question was is there a way to make this trigger a method without having a keyboard. Because as far as I can tell in order to make an onDataChange event fire you need to tab or click enter. The method would obviously reset the field ready for the next attempt
SO my thought was is there a listener plugin, which I think not because I cant find one. And if not do you think a looping script watching the field would cause problems as this seems the only solution
Cheers
Hi Gordon,
So the scanner software emulates keystrokes.
Perhaps you should take a look at the keylisteners plugin from Patrick Talbot.
Hope this helps.
ROCLASI:
Hi Gordon,
So the scanner software emulates keystrokes.
Perhaps you should take a look at the keylisteners plugin from Patrick Talbot.
Hope this helps.
Excellent plugin !!
I am not sure this is going to address the immediate issue, but certainly will work in the short term.
Thanks for your input
Is the issue here how to force the scanner input to a specific field?
Does the setFocus method not work?
On the scanner that I use there is a programming option to add a newline at the end of the barcode/keystrokes which is used to trigger the onDataChange.
Is there such as option for your scanner?
Thomas Parry:
Is the issue here how to force the scanner input to a specific field?
Does the setFocus method not work?
On the scanner that I use there is a programming option to add a newline at the end of the barcode/keystrokes which is used to trigger the onDataChange.
Is there such as option for your scanner?
Hi that’s exactly the problem and the fix I can throw that into the barcode if needs be - it’s a basic Motorola I don’t have the part number handy but certainly the new line would work
Many thanks
In my pre-Servoy days I did quite a few projects involving scanners and they were without exception easy to program such that they send and enter after every scan… Just open up that users manual!
We do thousands of barcodes a day with our warehouse management app, all you have to do program the scanner to send a tab or enter after it scans the barcode as Jan mentioned. Just make sure you program the event to regain focus on the field when it’s done.