cancel
Showing results for 
Search instead for 
Did you mean: 

SAP UI5 How to get data using external barcode reader

vinodkumar_thangavel
Participant
0 Kudos

Hi Experts,

I have a UI5 applications that runs in a computer with 4 input fields and I am using a external barcode reader (2D scanner) to scan all the inputs from a label , How do I populate the scanned data to the particular field in UI5?

Currently I am not planning to use the Camera on the device to read the barcodes.

Thanks,

Vinodkumar.

Accepted Solutions (1)

Accepted Solutions (1)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @vinodkumar_thangavel,

Usually, when you scan a complete set of information from a bar code, the scanner will send all characters at once to the PC. The scanner doesn't really know it is being integrated with a UI5 and vice versa. Therefore, you have to do two things:

1) The bar code information must contain all the information from all 4 fields separated by a TAB character 

2) Your UI5 must have the input fields set in a order such that each tab takes the information to the next field.

The other option would be to submit all of the information into a pop-up screen field (separated by commas or other character) on your UI5 front-end and when the user clicks on the OK button it parses the full string into its contents and populates de values in each field. But that would require additional steps from the user's point of view - which I find unnecessary. 

Best regards,
Ivan

 

vinodkumar_thangavel
Participant
0 Kudos
Hi Ivan, Thanks for your valuable input.

Answers (0)