cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BigTex
Helper I
Helper I

Continuous Scans

Hello everyone,

 

I am making an attendance app where I need to scan students' badges. With the new barcode scanner, I am not able to find a way where I can keep scanning badges continuously without user interaction after initial press on the scan button. Is there a way to accomplish this? 

 

Thank you in advance.

 

@Pstork1  @mdevaney 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @BigTex ,

Could you please share a bit more about your scenario?

Do you want to keep scanning badges continuously without user interaction after initial press on the scan button?

 

Based on the needs that you mentioned, I have made a test on my side, please take a try with the following workaround:

Set the OnScan property of the Barcode Scanner control (BarcodeScanner1) in your app to following:

Select(BarcodeScanner1)  /* <-- Auto fire the Barcode scanner without interaction after initial press on the scan button */

 

In addition, I also think the older version Web Barcode scanner could also achieve your needs. You could consider enable the "Web barcode scanner" option within Advanced settings of App settings of your app, then you could use the "Web barcode scanner" control in your app as below:

7.JPG

The Web barcode scanner would keep scanning badges continuously without user interaction.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

9 REPLIES 9
v-xida-msft
Community Support
Community Support

Hi @BigTex ,

Could you please share a bit more about your scenario?

Do you want to keep scanning badges continuously without user interaction after initial press on the scan button?

 

Based on the needs that you mentioned, I have made a test on my side, please take a try with the following workaround:

Set the OnScan property of the Barcode Scanner control (BarcodeScanner1) in your app to following:

Select(BarcodeScanner1)  /* <-- Auto fire the Barcode scanner without interaction after initial press on the scan button */

 

In addition, I also think the older version Web Barcode scanner could also achieve your needs. You could consider enable the "Web barcode scanner" option within Advanced settings of App settings of your app, then you could use the "Web barcode scanner" control in your app as below:

7.JPG

The Web barcode scanner would keep scanning badges continuously without user interaction.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Pstork1
Dual Super User III
Dual Super User III

It sounds like what you want is for the scanner to scan a new badge when it senses that the code has changed.  I don't think that's possible.  You have to use a button to have the scanner take a picture and then analyze it.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Spoiler

This worked for me. It scans and then auto fires the scanner again.

Set the OnScan property of the Barcode Scanner control (BarcodeScanner1) in your app to following:

Select(BarcodeScanner1)  /* <-- Auto fire the Barcode scanner without interaction after initial press on the scan button */

 

Wataru_ja
Frequent Visitor

Really?
It doesn't work.The barcode scanner starts but freezes.<OnScan(BarcodeScanner1)

I agree with Pstork1.

 

on iOS 13

@Wataru_ja 

You have to select the scanner on the OnScan property. Select(BarcodeScanner1); and not just (BarcodeScanner1). It works perfectly fine for me without freezing.

Wataru_ja
Frequent Visitor

Thanks to your Answer.

sorry about my explanation(11/3) is wrong...

Actually I have coded Select(BarcodeScanner1) at OnScan property,but doesn't work.(iphone6s iOS13)

I'd like to hear your device?

It's solved!

I had placed the camera and barcode on the same form.(Both functions are necessary for me.)

When I delete camera function, Select(BarcodeScanner1)work peerfectly!

Thank you very much.

Juriaan1
Regular Visitor

Hello,

I am looking for a way to combine the working code mentioned above and the code I already use on my BarcodeScanner1 > OnScan:

 

Patch(ScanInfo;Defaults(ScanInfo); {ScanData: BarcodeScanner1.Value; Klant: TextInput2.Text; Stellingnummer: TextInput1.Text; User: User().FullName; Time: Now()})

 

Is it possible to create continuous scans with this code?

Juriaan1
Regular Visitor

Figured it out. Really easy, just put ;; between the formulas 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,258)