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 / Barcode Reader on Gall...
Power Apps
Unanswered

Barcode Reader on Gallery is not working

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have a barcode reader control in a gallery. The issue I am facing is the OnScan() function is not getting triggered even after I am scanning a code. The same code is scannable in other places in app, but on the gallery its not working.  OnChange() fuction is triggered but the Barcodes table is returned as empty.

 

Any idea why

 

Thanks

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,434 Most Valuable Professional on at

    Hi @hiranes ,

    I do not believe the control was designed to have multiple instances like this. If you put it outside the gallery, you can still refer to the record elements selected in the gallery for reading/writing data.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • hiranes Profile Picture
    on at

    Thank you. But the problem is that I am using the barcode scanner to fill up some of the text boxes. Not all rows textboxes have the scanner. To achieve this how to design the page with gallery? As you can see the row in which the scanner comes is depend on the data. So I cant predict that.

    Screenshot 2024-03-04 101606.png

  • WarrenBelz Profile Picture
    156,434 Most Valuable Professional on at

    @hiranes ,

    Firstly there are (mostly rare) times when something just is not possible to do in the manner you want and this may be one of them. As I mentioned before, a control outside the gallery can still refer to fields in the selected gallery record and in your case, the Visible of the scan button could be based on the value in the relevant field/s in the selected. Gallery record.

    Would this work for you ?

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • hiranes Profile Picture
    on at

    @WarrenBelz Unfortunately No. There can be multiple textboxes with Scan property assigned. So a single scan button will not do. The scanned data need to be populated to the associated textbox.

  • WarrenBelz Profile Picture
    156,434 Most Valuable Professional on at

    @hiranes ,

    I cannot test this without building a model, however the outcome you are getting does not surprise me. There are no settings that I know of that you can change in either the gallery or the scanner, so I really cannot offer any other suggestions than I have currently.

  • hiranes Profile Picture
    on at

    Thank you for the insight and help @WarrenBelz. I shall explore other ways to design this page then. 

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard