cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Display Label if Browse Gallery is Empty

I'm currently using a calendar function/form that lets the user browse for an Employees jobs on a selected date. If the date matches any jobs they have on that date then they're populated in the browse gallery for the user to see.

 

What I'm trying to do now is if there are no jobs to display for that employee on the selected date then i want to display a label to inform the user that the employee is "Available" on that date.

 

I've been trying various isEmpty formulas on my Browse Gallery but can't seem to get the syntax correct.

 

 

Any help is greatly appreciated.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PowerApps Staff CarlosFigueira
PowerApps Staff

Re: Display Label if Browse Gallery is Empty

You can use the CountRows function using the AllItems property of the gallery to determine the visibility of this label. If your gallery is called 'BrowseGallery1', you can set the Visible property of the label to:

CountRows(BrowseGallery1.AllItems) = 0
2 REPLIES 2
PowerApps Staff CarlosFigueira
PowerApps Staff

Re: Display Label if Browse Gallery is Empty

You can use the CountRows function using the AllItems property of the gallery to determine the visibility of this label. If your gallery is called 'BrowseGallery1', you can set the Visible property of the label to:

CountRows(BrowseGallery1.AllItems) = 0
Anonymous
Not applicable

Re: Display Label if Browse Gallery is Empty

So simple yet so effective, excellent solution Carlos.

 

Thank you.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 224 members 4,545 guests
Please welcome our newest community members: