My Barcode Scanner control has the following properties:
Reset: false
OnScan: false
It is linked to a Text Input control named txtQrCode2, with the following property:
Default: BarcodeScanner4.
I have added a Cancel Icon to reset this value.
In that Icon's OnSelect property, I have tried numerous approaches, all without success.
Reset(BarcodeScanner) appears to clear the text field, but it is not seen as empty here:
Filter(FinishedGoodsMaster, (SearchInput_2.Text in stDescLine1) , (SearchInput_2.Text in stCodeParent) ,
(txtQrCode2.Text in stCodeParent))
So when I scan a value, the gallery displays the correct item, but when I Reset the BarcodeScanner control, the Gallery shows nothing. It should show everything - if it was truly empty - which is what happens if I manually delete the value.
Solved! Go to Solution.
Reset(BarcodeScanner) will set BarcodeScanner.Value to Blank(). You can test this by adding this formula to a label
BarcodeScanner.Value = Blank()
Which will return true after you reset the BarcodeScanner control. Try using BarcodeScanner.Value instead of just BarcodeScanner and see if that fixes it.
---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.
Reset(BarcodeScanner) will set BarcodeScanner.Value to Blank(). You can test this by adding this formula to a label
BarcodeScanner.Value = Blank()
Which will return true after you reset the BarcodeScanner control. Try using BarcodeScanner.Value instead of just BarcodeScanner and see if that fixes it.
---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.
Brilliant. I changed the Default property of my Text Input field to this:
If(IsBlank(BarcodeScanner4.Value),"",BarcodeScanner4.Value)
All now works!
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
196 | |
71 | |
49 | |
36 | |
25 |
User | Count |
---|---|
242 | |
111 | |
89 | |
88 | |
66 |