cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Power Apps
Power Apps

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

View solution in original post

2 REPLIES 2
Power Apps
Power Apps

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

View solution in original post

Anonymous
Not applicable

So simple yet so effective, excellent solution Carlos.

 

Thank you.

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (58,763)