cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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.
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
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (39,346)