cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

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
Highlighted
Resident Rockstar
Resident Rockstar

Re: What does Reset(BarcodeScanner) reset it to?

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
Highlighted
Resident Rockstar
Resident Rockstar

Re: What does Reset(BarcodeScanner) reset it to?

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

Highlighted
Post Patron
Post Patron

Re: What does Reset(BarcodeScanner) reset it to?

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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (8,581)