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
v-micsh-msft
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (44,644)