cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
aeng30
Level: Powered On

Scan and Record Multiple Barcodes

Hi,

 

I'm creating an app where I would like to scan and record multiple barcodes. I need to be able to exit the barcode scanner in between scans as the barcodes won't necessarily be scanned continuously. Basically I need to scan a barcode, record to multiline text input then have the ability to scan additonal barcodes and have them record to the same multiline text input. 

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
jhall
Level 8

Re: Scan and Record Multiple Barcodes

Pretty straightforward and I just tested to verify.  Drop your scanner button onto your app and change the OnScan code to be similar to the following:

Set(gScanData,gScanData & Char(10) & BarcodeScanner1.Value)

You can optionally drop in an If() to check if gScanData is empty so you don't get a Line Break at the beginning of course.

Then add a MultiLine Text field and set the Default to be gScanData.

 

1 REPLY 1
jhall
Level 8

Re: Scan and Record Multiple Barcodes

Pretty straightforward and I just tested to verify.  Drop your scanner button onto your app and change the OnScan code to be similar to the following:

Set(gScanData,gScanData & Char(10) & BarcodeScanner1.Value)

You can optionally drop in an If() to check if gScanData is empty so you don't get a Line Break at the beginning of course.

Then add a MultiLine Text field and set the Default to be gScanData.

 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 50 members 3,993 guests
Please welcome our newest community members: