Hi everyone...
I am trying to handle the following; if there is no item selected in a gallery, display the first item in an edit form. I've accomplished that with the If statement below. If the gallery is empty though, I want the edit form to display something like, "No Data."
Can someone guide me on how to incorporate what I believe should be an IsEmpty function in to the below expression?
If(
IsBlank(Key_Gallery.Selected),
First(Key_Gallery.AllItems
),Key_Gallery.Selected
)
Solved! Go to Solution.
If a gallery has any items in it, then there will *always* be a record selected.
For a label that shows "No data", just add a label and then set the Visible property to:
CountRows(Key_Gallery.AllItems)=0
I hope this is helpful for you.
If a gallery has any items in it, then there will *always* be a record selected.
For a label that shows "No data", just add a label and then set the Visible property to:
CountRows(Key_Gallery.AllItems)=0
I hope this is helpful for you.
Thanks @RandyHayes. This did the trick. I added the If statement because the App I inherited is laggy. Without it, we were seeing the app get hung up on, "Getting your data..." at times.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
187 | |
53 | |
52 | |
38 | |
37 |
User | Count |
---|---|
282 | |
97 | |
86 | |
80 | |
77 |