Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
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
MK_QSL
MVP
MVP

Please check enclosed file.

View solution in original post

24 Replies
MK_QSL
MVP
MVP

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

maxgro
MVP
MVP

or

=GetFieldSelections(yourfield)

if you want a specific field

rbecher
MVP
MVP

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

Astrato.io Head of R&D
Not applicable
Author

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.

Not applicable
Author

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.

sunilkumarqv
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),', ')

Not applicable
Author

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.

sunilkumarqv
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)) &' ' &
Not applicable
Author

Hi,

Try below:

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

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

and son on..