Hello,
I'm trying to display a label when there are no results from filtering a gallery. I've changed the 'onvisible' property to but it is not working:
If(IsBlank('HR FAQ'),true,false)
Any ideas what I should do?
Thanks in advance for any help,
Paul
Solved! Go to Solution.
Hi @smilingbo ,
Put on the Visible property of the Label
CountRows(YourGalleryName.AllItems)=0
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @smilingbo ,
Put on the Visible property of the Label
CountRows(YourGalleryName.AllItems)=0
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hellol Warren,
Thanks for your response, but it doesn't work for me as it doesn't recognise the 'allitems' element. I tried with a name from my datasouce and this didn't work either (with a combination of IF statement as well).
Do you have any other ideas what I could do?
Paul
Hi @smilingbo ,
Can you please supply the code you used (in Text) - AllItems will work on any gallery.
Hi @smilingbo ,
Just checking if you got the result you were looking for on this thread. Happy to help further if not.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hello,
I did manage to get it to work with a version of what you put:
If((CountRows(If(Gallery5.Selected.Value = "All", Filter('HR FAQ',searchquery in Question),Filter('HR FAQ',searchquery in Question && Category = Gallery5.Selected.Value)))) = 0,true,false)
Paul
User | Count |
---|---|
258 | |
109 | |
95 | |
57 | |
40 |