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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Scan Button OnScan & G...
Power Apps
Answered

Scan Button OnScan & Gallery Select

(0) ShareShare
ReportReport
Posted on by 264

My brain is not working today as I can write the logic on paper and it makes sense, but I can't duplicate it in PowerApps.

 

I have a gallery (AssetManGallery) that has a checkbox control (AssetCheckbox) for each record/row.  I also have a Scan Button (PopupBarcodeScanBtn) that I currently use to filter the gallery based on the barcode you scan, and I want to keep that.  Right now, a user can manually select multiple records by selecting the corresponding checkbox for each record/row which allows them to do bulk edits/transfers for the selected records.  I am wanting to give the users the ability to have the app select each record/rows checkbox if the scanned result matches certain criteria ('ScanTag#' or 'Serial#') within the record so they don't have to manually do this any longer.  

 

So, if a user selects the scan button and scans the barcode, I need whatever action is needed to search the gallery/rows ('ScanTag#' and 'Serial#' columns) for the record that matches the scanned barcode and select the checkbox for that record/row.  The user would keep doing this and it would be left with a gallery that has all barcodes they scanned respectively selected in the gallery.  

 

I've tried using the Search and Select function within the OnScan property of the Scan Button and I've tried messing with default property of the checkbox... but the only thing I could get to work was selecting a single record at a time.  I need selected items to lock in once its scanned.  If the user needs to remove it, they can just manually unselect the checkbox for the record.  Screen Cap below: 

 

Bulk Transfer Screen Cap.png 

Can someone please point me in the right direction?

Categories:
I have the same question (0)
  • Verified answer
    forbudt4u Profile Picture
    264 on at

    I didn't want to have to Patch anything as part of this process, but that's what I ended up doing to resolve this.

     

     - I created a new Column named BulkTransferSelected in my Collection

     - I created a variable to capture the scan results

     - OnScan properties of Scan button I patched the the collection BulkTransferSelected Column to "Yes"

     - I set the default for the gallery checkbox to be true if the BulkTransferSelected Column was "Yes"

     

    This process takes a little longer than I want it to, but it works and will save my users lots of time as they don't have to manually search for and check the boxes in the gallery any longer, or just individually transfer each item.  

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard