Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to check if a bookmark has no selections stored in it?

Hi.

What is the expression to see if a bookmark has selections or no selections stored in it?

Thanks!

3 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Create a Current Selections box, now select the bookmark if no items are displayed in the Current Selections box then there are no selections in the Bookmark, otherwise you have some selections in the Current Selections box.

Refer attached file, it has two bookmars, Current Selections box.  If you select bookmark Selection-1,2,3 then you can see the selected values in the Current Selections box, when you select the other bookmark, the Current Selections box is empty.

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Thanks.

How about if I want to check this condition in an expression?

jagan
Luminary Alumni
Luminary Alumni

Hi,

You need try like this

=If(GetCurrentSelections() > 0, 'Has Selections', 'No Selections')

Regards,

jagan.