web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How do I clear or Rese...
Power Apps
Answered

How do I clear or Reset the new barcode reader's BarcodeReader1.Barcodes?

(0) ShareShare
ReportReport
Posted on by 365

Hello,

 

Following Shane Young's Barcode Reader tutorial: https://www.youtube.com/watch?v=lMqYjOpRbRg

 

How do I clear that gallery with the Items property of BarcodeReader1.Barcodes? I want to have a button that clears out or resets all the currently scanned barcode values to return to an empty and clean slate.

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @ngreen,

     

    The Barcode control is currently not resettable. You would have to collect the Barcodes in the OnScan property, link the gallery to the collection and clear the collection when needed:

     

    //BarcodeReader OnScan
    Collect(colBarcodes, Self.Barcodes)
    
    //Gallery Items property
    colBarcodes
    
    //Button OnSelect
    Clear(colBarcodes)

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • Thor_PPC Profile Picture
    365 on at

    That's really silly that we can't currently reset it, but this solution has worked for me. Thank you so much!

  • mak123 Profile Picture
    4 on at

    This has not worked for me 😞

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard