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 / Search Gallery with ba...
Power Apps
Unanswered

Search Gallery with barcode scanner

(0) ShareShare
ReportReport
Posted on by 15

I seem to be having issues configuring my search bar within my BrowseGallery to search for "BIN LOCATION" or by "Title" when I type in the search text. Or to use the scan button to input text in the search bar so that I can filter my gallery to only pull what is located within that bin. 

 

emartinez_0-1659534374482.pngemartinez_1-1659534404563.pngemartinez_2-1659534443166.png

 

Categories:
I have the same question (0)
  • SebS Profile Picture
    4,582 Moderator on at

    Hello @emartinez,

     

    I see You created already variable I'm assuming it's in Property OnScan of the Scanning component button.

     

    Try now to place in Default property of Your Search Box what I'm assuming is Text Input

     

    If(
    
    !IsBalnk(varItem),
    
    varItem,
    
    "")

     

    If you scan something Your variable will have value and the value will show up in search box if not it will depend on user input.

     

     

    Hope it helps

  • emartinez Profile Picture
    15 on at

    It did not Work. 😞

     

    Browse gallery formula

    emartinez_0-1659538206264.png

    TextSearchBox

     

     

     

    emartinez_1-1659538265408.png

    Scan button is a stand alone just positioned on top of the the TextSearchBox 

    emartinez_2-1659538423046.png

     

  • emartinez Profile Picture
    15 on at

    I tried to follow this Topic Thread but I keep getting an error and I can't seem to find what I am missing. 

     

    https://powerusers.microsoft.com/t5/Building-Power-Apps/How-to-filter-gallery-from-QR-scanner-button/m-p/1293476#M338494

     

    emartinez_0-1659538928889.pngemartinez_1-1659538954347.png

    SortByColumns(
     Filter(
     [@'Secure Room Inventory'], 
     StartsWith(
     Title, 
     TextSearchBox1.Text
     ) &&
     (
     IsBlank(scanValue) ||
     YourBarCodeField = scanValue
     )
     ), 
     "Title", 
     If(
     SortDescending1, 
     Descending, 
     Ascending
     )
    )
  • SebS Profile Picture
    4,582 Moderator on at

    Hi @emartinez,

     

    Just to confirm currently even if You type Item Code by hand to Search Box the gallery is not filtering ?

    I was assuming Your search Box is working so I never focused on your Filter formula 🙂

     

    Regards

  • emartinez Profile Picture
    15 on at

    @seb 

     

    Yes it does work. It will work when i search by "title" it will not work when i search by "BIN LOCATION"

    emartinez_0-1659539645098.png

     

     

  • SebS Profile Picture
    4,582 Moderator on at

    Hi @emartinez,

     

    Ok I'm Assuming the column holding the scanned barcode is calling   "BIN LOCATION"

     

    SortByColumns(
     Filter(
     [@'1225 Consumable Inventory'], 
     StartsWith(
     Title, 
     TextSearchBox1.Text
     ) &&
     (
     IsBlank(varItem) ||
     'BIN LOCATION' = varItem
     )
     ), 
     "Title", 
     If(
     SortDescending1, 
     Descending, 
     Ascending
     )
    )

     

    Try code above check if it filter when You type Title manually and than when You Scan

     

     

    Regards

  • SebS Profile Picture
    4,582 Moderator on at

    Personally I will go with this on start :

     

     

    Filter(
     '1225 Consumable Inventory',
     IsBlank(varItem) || IsEmpty(varItem) || 'BIN LOCATION' = varItem,
     IsBlank(TextSearchBox1.text) || IsEmpty(TextSearchBox1.text) || StartsWith(
     Title,
     TextSearchBox1.text
     )

     

  • Verified answer
    emartinez Profile Picture
    15 on at

    @SebS 

     

    I solved my issue! I was just overthinking. 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard