cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stapes
Impactful Individual
Impactful Individual

What does Reset(BarcodeScanner) reset it to?

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.

1 ACCEPTED SOLUTION

Accepted Solutions
EricLott
Community Champion
Community Champion

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.

View solution in original post

2 REPLIES 2
EricLott
Community Champion
Community Champion

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.

stapes
Impactful Individual
Impactful Individual

Brilliant. I changed the Default property of my Text Input field to this:

If(IsBlank(BarcodeScanner4.Value),"",BarcodeScanner4.Value)

All now works!

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (3,482)