Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

Announcements
Modernize Your QlikView Deployment webinar, Nov. 3rd. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

How can we Display values after selecting it from list box and then clicking a button and display it in text box continuously?

Hi,

requirement is that whenever we select a value in any of the list box and click the button the data need to be appeared  in text box continuously.

i.e if i select a value from list box A and click the button the data need to be displayed in text box,

similarly if i select a value from list box B and click the button the data need to be displayed in text box

so how can i achieve this please help me URGENT.

Thanks in Advance,

sravani k.

1 Solution

Accepted Solutions
Highlighted
MVP
MVP

Please check enclosed file.

View solution in original post

24 Replies
Highlighted
MVP
MVP

=getcurrentselections ( chr(13)&chr(10) , ' : ' , ' ; ' )

Highlighted
MVP
MVP

or

=GetFieldSelections(yourfield)

if you want a specific field

Highlighted
MVP & Luminary
MVP & Luminary

Hi,

you can use a button action (external/set variable) and set the selected value to a variable which get shown continously in the text box. Perhaps you will log the selections a user made? If so please find attached example.

- Ralf

Vizlib Head of R&D
Highlighted
Not applicable

Hi Manish,

Thank you for the answer but what i need is only the values need to be displayed not the fieldnames along with the values in the textbox.

i.e if we select a value 'A' from Customer list box and Click the Button then only 'A' need to be displayed in text box not as Customer:A and if possible the value need to be deselected from listbox once displayed in text box.

Thanks
sravani k.

Highlighted
Not applicable

Hi Ralf,

Thank you for the answer but what i need is only the values need to be displayed not the fieldnames along with the values in the textbox.

i.e if we select a value 'A' from Customer list box and Click the Button then only 'A' need to be displayed in text box not as Customer:A and if possible the value need to be deselected from listbox once displayed in text box.

Thanks
sravani k.

Highlighted
Specialist II
Specialist II

Hi sravani,

as of manish  exp edit like this. hope these is you looking for.

='  '& CHR(10) & CHR(10)

& Concat(GetFieldSelections(Customer),', ')

Highlighted
Not applicable

ya but it can't be only the customer listbox..

we can have many listboxes and when we select a value from particular list box and click the button then only the value selected need to be displayed in text box not the fieldname also...

thanks in advance

sravani.

Highlighted
Specialist II
Specialist II

  For many list boxs  you want list out whatever listboxnames and fields follow below script

=' ' & If(GetSelectedCount(Listboxtablename1)>0, GetFieldSelections(Listboxtablename1)) &' ' &

                If(GetSelectedCount(Listboxtablename2)>0, GetFieldSelections(Listboxtablename2)) &' ' &
                If(GetSelectedCount(Listboxtablename3)>0, GetFieldSelections(Listboxtablename3)) &' ' &
                If(GetSelectedCount(Listboxtablename4)>0, GetFieldSelections(Listboxtablename4)) &' ' &
Highlighted
Not applicable

Hi,

Try below:

=If(GetSelectedCount(FieldName1)>0, GetFieldSelections(FieldName1) & Chr(10) &

If(GetSelectedCount(FieldName2)>0, GetFieldSelections(FieldName2) & Chr(10) &

and son on..