cancel
Showing results for 
Search instead for 
Did you mean: 

Bring back ScanBarcode()

I was using ScanBarcode() up until today when I discovered it was no longer supported.

My scenario is that I have a dropdown that changes and depending on the value selected, there might be a need to scan a barcode. If that is the case, I was calling ScanBarcode() and saving the result to a variable.

Now as far as I can tell there is no way to trigger a Scan other than the user clicking on a BarcodeScanner control. Select(BarcodeScanner1) would be obvious but it's not supported. In my head there is a hidden "Select" method on the BarcodeScanner control that calls ScanBarcode().

Bring back ScanBarcode() or create a method to trigger the BarcodeScanner control.

In other places in my app I was using an icon to trigger ScanBarcode(). This is also now not supported and instead of using a nice icon I have to use an ugly text button. There is no way to make the icon work because I can't trigger a scan for the reasons described above.

Status: Completed

Hello @sopatte ,

We've added support for the Select function, this will allow you to trigger an onSelect without having to press the button.

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 )

Hope this helps! 

Comments
PowerApps Staff
Status changed to: Completed

Hello @sopatte ,

We've added support for the Select function, this will allow you to trigger an onSelect without having to press the button.

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 )

Hope this helps!