68
Views
11
Comments
Solved
External bar code scanner.
Application Type
Reactive

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

2020-09-21 08-42-47
Vincent Koning
Solution

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?

2024-05-07 09-21-36
Rakhi Chouhan

I'm using RETSOL LS 450 Laser Barcode Scanner BIS Approved scanner.
This is the link to the product that I'm using.

2020-09-21 08-42-47
Vincent Koning

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. 

2024-05-07 09-21-36
Rakhi Chouhan
UserImage.jpg
vikas sharma
Champion

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

2024-05-07 09-21-36
Rakhi Chouhan

It is connected as USB. Like as other input devices.

UserImage.jpg
vikas sharma
Champion

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.

regards

2024-05-07 09-21-36
Rakhi Chouhan

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.


UserImage.jpg
vikas sharma
Champion

Hi Rakhi,

If this is the case then you need to write some logic in application, to upload that excel file and populate values from there.

regards

2020-09-21 08-42-47
Vincent Koning

Just make sure that the input widget has focus when you scan a barcode and you should be good to go.

2017-07-15 18-41-36
Sachin Mahawar

Hi Rakhi,

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



2020-09-21 08-42-47
Vincent Koning
Solution

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?

2024-05-07 09-21-36
Rakhi Chouhan

I'm using RETSOL LS 450 Laser Barcode Scanner BIS Approved scanner.
This is the link to the product that I'm using.

2020-09-21 08-42-47
Vincent Koning

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. 

2024-05-07 09-21-36
Rakhi Chouhan
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.