cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Capturing barcodes

Hello all,

 

I am planning on using the barcode scanner functionality within my app, however need some help with this:

App users will have barcode scanners to scan several items in quick succession. Each barcode should be captured, in a way that makes the user experience as easy as possible.

 

I see two options here, any suggestions would be highly appreciated:

 

  1. Concatenate scanned barcodes to generate a string like “2766610; 2766612; 2766614” ... how would I write the syntax to do that?
  2. Capture each barcode in a separate textbox (as shown below). This is problematic for user experience though since the user needs to select each text entry field before being able to scan the barcode… unless there is a way to automatically jump to another text entry field?

 Overall I am also open to other ideas! 🙂

 

Barcodes.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Anonymous
Not applicable

Thanks for the suggestion. 

 

I also found another way, in which the user needs to select a text input field only once before scanning multiple barcodes in quick succession. Then I patch the entry and replace the carriage return character with ";" to create a string containing all scanned barcodes: 

 

barcode.JPG

Patch(Collection, First(Collection), 
{Barcodes: Substitute(Barcode.Text, Char(10), Char(59)&" ")})

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

The Barcode Scanner won't save the scannedstring automatically, so a button is needed to collect the actual string, once the number is stable, we can click the button to collect it.

Under the OnSelect property of the button, input the formula below:

Collect(BarcodeList, {Number:Barcode1.Text})

This formula would collect every single click with the button to a record, so there might be blank or the wrong values collected.

Once done, you may use the concat () function to combine those string into one single string:

For example:

Concat( BarcodeList, Number&";" )

Some more readings about the Barcode control:

Create a barcode scanning app in minutes

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Anonymous
Not applicable

Thanks for the suggestion. 

 

I also found another way, in which the user needs to select a text input field only once before scanning multiple barcodes in quick succession. Then I patch the entry and replace the carriage return character with ";" to create a string containing all scanned barcodes: 

 

barcode.JPG

Patch(Collection, First(Collection), 
{Barcodes: Substitute(Barcode.Text, Char(10), Char(59)&" ")})

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (10,896)