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 / 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

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,679 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,679 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard