Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

prathipsrinivas
Contributor

Dynamic show/hide list box upon the selection of different list box

Hi Qlik Experts,

I have a requirement where I need to display all the fields in the model in a list box , that I have created using the field ($field).

Upon selection of field name in the list box created as in the above, listboxes for the selection has to be created.

For ex:

if I select one field name in the fields list box, new one list box for selected field should visible.

Similarly if I select 4 field names, that many list boxes has to be created.

Is there any way to achieve this? 

Thanks in advance,

Prathip

2 Solutions

Accepted Solutions

Re: Dynamic show/hide list box upon the selection of different list box

can you explain with sample data? with expected output.

Regards,
Prashant Sangle
Great dreamer's dreams never fulfilled, they are always transcended.

View solution in original post

Re: Dynamic show/hide list box upon the selection of different list box

1: Create Inline table as ListBoxName which has value of all list box which you want to show / hide.
2: In front end give user to select this newly created inline
3: Take all List box in front end and Use below expression to show / hide list box
Expression :
1: For List Box A: If(GetFildSelections(ListBoxName)='A',1,0)
2: For List Box B: If(GetFildSelections(ListBoxName)='B',1,0)
3: For List Box C: If(GetFildSelections(ListBoxName)='C',1,0)

Regards,
Prashant Sangle
Great dreamer's dreams never fulfilled, they are always transcended.

View solution in original post

5 Replies

Re: Dynamic show/hide list box upon the selection of different list box

can you explain with sample data? with expected output.

Regards,
Prashant Sangle
Great dreamer's dreams never fulfilled, they are always transcended.

View solution in original post

prathipsrinivas
Contributor

Re: Dynamic show/hide list box upon the selection of different list box

Let's consider we have 5 fields in the model ,say

A,B,C,D,E.

I want a list box to display all the fields (A,B,C,D,E) as values.

When I select, say, A and C, I'd expect two new list boxed show up .

1 with Values of A and 2nd with values of C.

Hope the explanation is clear.

Re: Dynamic show/hide list box upon the selection of different list box

1: Create Inline table as ListBoxName which has value of all list box which you want to show / hide.
2: In front end give user to select this newly created inline
3: Take all List box in front end and Use below expression to show / hide list box
Expression :
1: For List Box A: If(GetFildSelections(ListBoxName)='A',1,0)
2: For List Box B: If(GetFildSelections(ListBoxName)='B',1,0)
3: For List Box C: If(GetFildSelections(ListBoxName)='C',1,0)

Regards,
Prashant Sangle
Great dreamer's dreams never fulfilled, they are always transcended.

View solution in original post

prathipsrinivas
Contributor

Re: Dynamic show/hide list box upon the selection of different list box

Thanks Prasanth.

Does it allow Multiple selection?

Re: Dynamic show/hide list box upon the selection of different list box

yes.
Great dreamer's dreams never fulfilled, they are always transcended.