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 show no search ...
Power Apps
Unanswered

how to show no search results found message when your gallery is hidden when logging on

(0) ShareShare
ReportReport
Posted on by

My power app gallery is hidden when logging on for the protection of information. 

I need to show a "no results found" message when a search returns nothing.

however, when I use this code on the visible property of the message,

 

If ( Count Rows(Gallery1.AllItems) = 0, true )

 

it shows the message even before the search is made.

cla5ra_0-1676962402418.png

 

 

 

 

Categories:
I have the same question (0)
  • Manan-Malhotra Profile Picture
    621 Super User 2024 Season 1 on at
    //Write this on the onchange of your serch box
    UpdateContext({varShowHide:"Yes"});
    
    //Write this on the cancel button "On Select", you need to create a cancel button using icon, its basic functionality should be to clear search text 
    UpdateContext({varShowHide:"No"});

     

    After implementing the above

    If ( Count Rows(Gallery1.AllItems) = 0 And varShowHide="Yes", true,false)

     

    Let me know if this works for you!

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Manan-Malhotra

    No If() is necessary since Count Rows(Gallery1.AllItems) = 0 And varShowHide="Yes" reduces to either true or false without it. 

     

    @Drrickryp

    Department of Redundancy Department 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard