Skip to main content
Community site session details
Power Apps - Building Power Apps
Answered

Adding a Search Bar to a Gallery

Like (0) ShareShare
ReportReport
Posted on 23 Feb 2021 11:28:34 by 136

Is it possible to add a Search Bar that can search all Data within the Gallery.

For instance, if I search 'Open' it would provide me with listings of any item that has the word Open within it?

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    148,894 Most Valuable Professional on 04 Jun 2024 at 21:24:19
    Re: Adding a Search Bar to a Gallery

    @rroque ,

    Should be like this - assuming ctx_sort_column is a Variable.

    SortByColumns(
     Search(
     OPTrack_FormsInventoryEnhancedTables,
     txtSearch.Text, 
     FORM_NO
     ),
     ctx_sort_column,
     If(
     ctx_sort_order,
     SortOrder.Ascending,
     SortOrder.Descending
     )
    )

     

    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

     

  • Verified answer
    WarrenBelz Profile Picture
    148,894 Most Valuable Professional on 24 Feb 2021 at 11:50:26
    Re: Adding a Search Bar to a Gallery

    Hi @kevtun1982 ,

    Note that Search() is not Delegable, so you will get a Delegation warning on this

    Search(
     Filter(
     NewNCR,
     (
     StatusDropdown.Selected.Value="All" || 
     Status.Value = StatusDropdown.Selected.Value
     ) &&
     (
     CategoryDropdown.SelectedText.Value="All" || 
     Category.Value = CategoryDropdown.Selected.Value
     )
     ),
     SearchBox.Text,
     "Listings",
     "OtherField1",
     "OtherField2"
    )

     Replace your other fields on the last two and add any more.

     

    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.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete
Loading complete