Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Selections in the list box

Hi,

i have two listboxes...i need second listbox to get display only if i made any selections in first list box,,,

Pls help me out and explain in detail

4 Replies
Not applicable
Author

Say you have two fields 'field1' and 'field2' where 'field1' is used in a listbox.

You can put 'field2' in a listbox and then set Layout>Show...Conditional as:

GetSelectedCount(field1) <> 0

this is only true when field 1 has 1 or more explicit selections made (that is not just associated).

Regards,

Gordon

Not applicable
Author

Hi,

For the second list box Properties>layout>show>conditional


if(getselectedcount([Feild1_])=0,0,1


Not applicable
Author

Hi,

For the second list box Properties>layout>show>conditional


if(getselectedcount([Feild1_])=0,0,1


johnw
Champion III
Champion III

I'll just note that since 0 evaluates to false and anything non-zero evaluates to true, in situations like this, you don't need to compare to 0 or use an if(). This works just fine on its own:

getselectedcount(field1)