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:
Can someone please point me in the right direction?

Report
All responses (
Answers (