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 / How to search in gallery
Power Apps
Unanswered

How to search in gallery

(0) ShareShare
ReportReport
Posted on by 64

Good day people,

 

Can you help me please about how to search in this gallery please? I tried in so many ways that I can't figure it out anymore.

Everytime i come with the "Search" command, files are no more displayed and I get error.

 

I'll attach photos. "Search" is for the Search bar, and I want to search for "NumeDoc" Label in the "glr_DIV" gallery.

 

Thank you

Screenshot 2023-08-03 120622.png
Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @RaduR - could you share the code you're using?

     

    The syntax should follow a pattern like below:

     

    Search(
     'Your Data',
     TextInput1.Text,
     "your field to search 1",
     "your field to search 2"
    )

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

     

  • RaduR Profile Picture
    64 on at

    Please check the photo in the first post. That's all code used.

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @RaduR please share the code as text, not as an image.

  • RaduR Profile Picture
    64 on at

    Sorry.

     

    SortByColumns(


    (Filter(

    'Documente in Vigoare',
    'Folder path' = CaleFolder
    ))
    ,

    "{IsFolder}",
    SortOrder.Descending,
    "{Name}",
    SortOrder.Ascending

    )

  • Stacktor Profile Picture
    2 on at

    @Amik I hope it's okay if I come in between you two, but I have a Problem with your code. I can search the Gallery perfectly fine, but it is Searching Case Sensitive, so if I Have an Item that Name is "TABLE" it won't find the item when I Search "Table"

  • RaduR Profile Picture
    64 on at

    I am open to any recommendations. 🙂

  • Talha_Dar Profile Picture
    870 Super User 2024 Season 1 on at

    Hi @RaduR,

     

    Which datasource are you using?

  • RaduR Profile Picture
    64 on at

    Files in a Document Library in Sharepoint.

  • Static Profile Picture
    118 on at

    Follow this pattern 
    Filter(datasource, TextSearchBox.Text in NumeDoc)

    Search( Table, SearchString, Column1 [, Column2, ... ] )

    Best Regards,
    Anton Nyrkov

  • Talha_Dar Profile Picture
    870 Super User 2024 Season 1 on at

    I don't quite understand your use case. Why are you filtering based on the folder path? You will only get the files that are in the folder you are connected to. Are you displaying files from multiple libraries?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard