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

Barcode Reader Multiscan (Prevent Duplicate Scan) & Multiple Font Color in Gallery Subtitle

(0) ShareShare
ReportReport
Posted on by 12

Hi everyone, 

 

I am trying to create a Barcode Reader App which allows Multiple scans at the same time; however, I want to prevent duplicate scan from occurring. 

 

Issue 1: Prevent Duplicate Barcode being captured during scanning (Multi Scan Mode)

 

Collection = MultiBarcode
Insert a Gallery (Select Title Only)

 

 

DataSource = MultiBarcode

Gallery Title Text = ThisItem.Value

 

 

 

Insert a Barcode Reader

 

 

OnScan = If(CountRows(Filter(MultiBarcode,Value=BarcodeReader1.Barcodes))>0,Notify("Duplicate"),
Collect(MultiBarcode,BarcodeReader1.Barcodes))

 

 

I am getting an incompatible comparison error for the OnScan code above.

 

Issue 2: Multiple Font Color in Gallery Subtitle

 

baiocchi87_0-1690251587823.png

 

I created a gallery to showcase and calculate data in a Sharepoint List.

For the gallery subtitle (AVAILABLE...........................), I want to change the font color of Available to Green & Total Cylinders to Red.

Below is the current code for the subtitle:

 

 

"AVAILABLE: " & CountIf(
 'Barcode List',
 Gastype = ThisItem.Value && OnLoan = "Yes"
) & " Unit ; Total Cylinders: " & CountIf(
 'Barcode List',
 Gastype = ThisItem.Value && TotalAvail = "1"
)

 

 

 

 

Categories:
I have the same question (0)
  • narayan225 Profile Picture
    2,547 Super User 2025 Season 2 on at

    @baiocchi87 

     

    I think this has already raised and resolved. Check the following topic.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Barcode-Scanner-function-to-check-if-the-scanned-item-is-already/td-p/1762389

     

    Cheers!

  • Nicci Profile Picture
    194 on at

    This actually was not raised and resolved. The link you sent is about checking against a database that was patched already from a past scan to see if the scan already exists. I think what OP is asking here is while scanning check for duplicates against what was already scanned in the same session before patching.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard