Hi Everyone,
I have an external bar code scanner device, through that, I want to scan the bar code and get the value stored in the local variable how can I achieve this functionality in OutSystems?
Thanks
Rakhi
Most USB scanners that I know are configured as a HID device and are therefor an input device ala an Keyboard. That means that you simply put focus on an input widget, use the scanner and the result will be inputted in the input widget. Easy.
But to have the value stored into an local variable after scanning, that is a different beast to tackle. As far as I know you can't distinguish between HID devices. So you can't determine if you barcode result is coming from a regular keyboard or the usb scanner.
There are of course more sophisticated scanners with API's and whatnot but that really depends on the scanner and the features they expose. What brand and type of scanner do you have?
I'm using RETSOL LS 450 Laser Barcode Scanner BIS Approved scanner.This is the link to the product that I'm using.
To me this looks like indeed a simple HID device. What happens when you open notepad, put the focus in it and then scan a barcode? It will probably show the barcode result in the notepad.
Yes, it is showing.
Hi,
Its depend on the external bar code scanner device. Like what interface or communication channel this device provide. It may be some bluetooth communication or upload somewhere or some APIs to integrate.
regards
It is connected as USB. Like as other input devices.
Hi Rakhi,
So in this case you need to check the specifications provided by this external device. If integration guide is not provided to you then need to check on net for API documents if available or not.
We are getting bar code scanned values in Word and Excel without doing any external efforts. Same as I want to get those values in my application input field.
If this is the case then you need to write some logic in application, to upload that excel file and populate values from there.
Just make sure that the input widget has focus when you scan a barcode and you should be good to go.
I believe integration instructions should be provided by the scanner device provider itself, this could be via API. Please check the integration instruction document if it is provided by the device provider.
Thanks,
Sachin