Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

show list box

Is there  a way to show a list box only when you select value from a table box..If yes,please provide an example.

Thanks a bunch.

1 Solution

Accepted Solutions
maxgro
MVP
MVP

PFA

EDIT: sorry, added, try and let me know

View solution in original post

10 Replies
maxgro
MVP
MVP

PFA

EDIT: sorry, added, try and let me know

Not applicable
Author

I dont see any attachment.Can you please send again.

kuczynska
Creator III
Creator III

Create your listbox. Go to Layout tab and Show section:

sc1.PNG

Select Conditional show and type an expression, my example:

if(GetSelectedCount(Region) >= 1, 1,0)

Listobox will be displayed only when there is any selection made in the Region listbox (one or more values):

sc1.PNG

Otherwise, it will not be visible:

sc1.PNG

Anonymous
Not applicable
Author

You can use the "GetSelectedCount"-function;

In the list box properties > Layout > Conditional, write GetSelectedCount(YourField)

If you have several fields that you want to check for selections, use "or";

GetSelectedCount(YourField1) or GetSelectedCount(YourField2)


You can do this for all your fields in your table box, if you want it to react on all selections done in the table.

Anonymous
Not applicable
Author

I see that Kuczynska wrote basically the same before me. The minor difference in the syntax is that the conditional is basically an if. I QlikView, all values other than 0 is "true" while 0 is "false".

This means that you do not need to write your own if-statement, as the GetSelectedCount will return 0 (false) when nothing is selected, or the number of selections 1,2,3....(true).

Good luck!

chaper
Creator III
Creator III

See the atatchment.In the example select a single product from table box will show Customer list box.Is this what you are looking for?

kuczynska
Creator III
Creator III

kim.rormark You're right IF it's not necessary in this case, for some reason I get used to using it every now and then, probably that's why. GetSelectedCount(Region) >= 1 will do the job as well.


Anonymous
Not applicable
Author

I do too, I just try not to give others my own bad habits! Good answer, though!

Not applicable
Author

Thank you.It did work