Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Current Selections

I have an object that I'd to like to be visibleonly on the condition that there is at least one current selection. Is there a function for this? GetCurrentSelections requires a field. Basically I just need to know whether there is currently a selection or not so that I can put it on the Conditional Show/Hide.

1 Solution

Accepted Solutions
mikecrengland
Creator III
Creator III

I use this:

=If(Count(GetCurrentSelections()) = 0, 'No Selections Made',

IF(vCurSelect = 1, 'Hide Current Selections', 'Show Current Selections'))

to change text on a button to show the current selections box. I would imagine Count(GetCurrentSelections()) = 0 as your show/hide condition should work.


mike

View solution in original post

3 Replies
Anil_Babu_Samineni

You can use something like from Layout condition

If(GetFieldSelections(FieldName)>0, 1, 0)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
mikecrengland
Creator III
Creator III

I use this:

=If(Count(GetCurrentSelections()) = 0, 'No Selections Made',

IF(vCurSelect = 1, 'Hide Current Selections', 'Show Current Selections'))

to change text on a button to show the current selections box. I would imagine Count(GetCurrentSelections()) = 0 as your show/hide condition should work.


mike

lcontezini
Partner - Creator
Partner - Creator

Try this:

ISNULL(GetcurrentSelections())

Returns 0 if there is selection, or -1 if anything selected.