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

Activating the Barcode Scanner control from a different control

I'd like to run the barcode scanner from a differnet control, but it dosn't have an onSelect function so I cant use Select(BarcodeScanner)... My ultimate goal is to have a continuous scan.  Scan a code, add it to a collection then scan another code until the user is complete. I was abe to achieve this with the ScanBarcode function, but I can't figure it out with the new control.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Power Apps Staff mobaky
Power Apps Staff

Re: Activating the Barcode Scanner control from a different control

Hello @Ben_Z ,

 

We've added support for the Select function and it should be available for you to try.

Example: 

If you would like to scan  a barcode on Text input focus you can do something like this:

TextInput1.OnSelect = Select(BarcodeScanner1)

BarcodeScanner1.OnScan = Collect(Barcodes, BarcodeScanner1.Value )

CC: @v-yuxima-msft  @RandyHayes 

View solution in original post

6 REPLIES 6
Community Support Team
Community Support Team

Re: Activating the Barcode Scanner control from a different control

Hi @Ben_Z ,

 

Do you want to collect scanner's value?

You can set BarcodeScanner1.OnScan:Collect(test,BarcodeScanner1.Value)  (BarcodeScanner1 is my scanner name on my side)

 

Hope this could be helpful.

 

Best Regards.

Yumia

Ben_Z
Level: Powered On

Re: Activating the Barcode Scanner control from a different control

Yumia,

Thanks for the response.

 

Correct me if im wrong, but this will scan a barcode (once) and put the value into a collection.  My need is to call the scanner over and over again.  I'd like it to not only add the value to the collection, but also call the scanner again to scan a new barcode.

Super User
Super User

Re: Activating the Barcode Scanner control from a different control

@Ben_Z 

The auto-scan feature you're looking for does not currently exist in the new barcode scanner.  Eventually, I believe, it will be back.  But for now - what you're looking for is not there.

 

Not what you were looking for, but hopefuly it answers your question.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Community Support Team
Community Support Team

Re: Activating the Barcode Scanner control from a different control

Hi @RandyHayes @Ben_Z 

 

Thanks for your reply.

 

Hi @Ben_Z ,

 

If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Best Regards.

Yumia

 

Power Apps Staff mobaky
Power Apps Staff

Re: Activating the Barcode Scanner control from a different control

Hello @Ben_Z ,

 

We've added support for the Select function and it should be available for you to try.

Example: 

If you would like to scan  a barcode on Text input focus you can do something like this:

TextInput1.OnSelect = Select(BarcodeScanner1)

BarcodeScanner1.OnScan = Collect(Barcodes, BarcodeScanner1.Value )

CC: @v-yuxima-msft  @RandyHayes 

View solution in original post

Ben_Z
Level: Powered On

Re: Activating the Barcode Scanner control from a different control

@mobaky 

 

Thank you , it works now.

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (3,950)