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 / Search function & gall...
Power Apps
Unanswered

Search function & gallery display

(1) ShareShare
ReportReport
Posted on by 17

Hello,

 

I have a gallery that uses a search function and search box to find records in the gallery.

It works perfectly fine in design mode, where all the items in the gallery are viewable before using the search box.

But when viewing as a published app either on the web or on the phone, all items are not displayed in the gallery.

I would like the items to be viewable before using the search box.

 

Is there something in the coding as below that I need to include so that all items are viewable?

Images are provided as a point of reference.

 

SortByColumns(Search(Filter('Nests Databases',Filter=Dropdown1.SelectedText.Value),PenguinID_Search.Value,C1ID,C2ID,AFID,AMID,Location_ID),"crf58_seasondate",SortOrder.Descending,"crf58_sequencenumber",SortOrder.Ascending)
 
Thankyou!
Development view.png
Published app view.png
Categories:
I have the same question (0)
  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    hi @penguinrescuenz ,

     

    • Check the Default Values: Ensure the search box (PenguinID_Search) and dropdown (Dropdown1) have default values that won't restrict the gallery items.

    • Adjust the Formula: Modify your formula to handle cases where the search box is empty or the dropdown has a default value indicating no filter.

     

    SortByColumns(
     Search(
     Filter(
     'Nests Databases',
     IsBlank(Dropdown1.SelectedText.Value) || Filter = Dropdown1.SelectedText.Value
     ),
     PenguinID_Search.Value,
     "C1ID",
     "C2ID",
     "AFID",
     "AMID",
     "Location_ID"
     ),
     "crf58_seasondate", 
     SortOrder.Descending, 
     "crf58_sequencenumber", 
     SortOrder.Ascending
    )

     

     

  • BCBuizer Profile Picture
    22,654 Super User 2026 Season 1 on at

    Hi @penguinrescuenz ,

     

    In cases where there's a mismatch between the app in Power Apps studio and when playing the app, usually the cause is that the changes you made in Power Apps studio were not published.

     

    Other possible causes may be related to using multiple environments, so if the above doesn't solve your issue, please share if are you using multiple environments.

  • BoboLee Profile Picture
    33 on at

    Have you used the same Share Point connection when playing published app? Open the published app with monitor and check what will happen

  • BCBuizer Profile Picture
    22,654 Super User 2026 Season 1 on at

    Hi @penguinrescuenz ,

     

    I also just noticed you are using the DropDown.SelectedText property which has been deprecated. Instead use Selected:

    SortByColumns(
     Search(
     Filter(
     'Nests Databases',
     IsBlank(Dropdown1.Selected.Value) || Filter = Dropdown1.Selected.Value
     ),
     PenguinID_Search.Value,
     "C1ID",
     "C2ID",
     "AFID",
     "AMID",
     "Location_ID"
     ),
     "crf58_seasondate", 
     SortOrder.Descending, 
     "crf58_sequencenumber", 
     SortOrder.Ascending
    )
  • penguinrescuenz Profile Picture
    17 on at

    Awesome. Thanks @BCBuizer .

    I will try this out and see how I get on.

    Thanks for your help and helping penguins!

  • penguinrescuenz Profile Picture
    17 on at

    Awesome. Thanks @anandm08 

    I'll try this and see how I get on.

    Thanks for helping out and helping penguins!

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 528

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard