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

Get selected value

Hi!

I have a table in the script:

T1:

load * inline [

f1, f2

1, a

2, b

3, c

];

In List Box I chose field 'f1'.

I can get the selected value of f1-field through getfieldselections('f1') function.

Question: how to get the corresponding value of the f2-field ?

Thanks!

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

If you have made a selection in f1, there is only one possible value of f2, one value will be white (possible) in a list box for f2. Or reference it directly:

     =f2

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

4 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

If you have made a selection in f1, there is only one possible value of f2, one value will be white (possible) in a list box for f2. Or reference it directly:

     =f2

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
MayilVahanan

Hi

Try like this

=IF(GetSelectedCount(f1) > 1, Concat(DISTINCT f2,','))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
sunilkumarqv
Specialist II
Specialist II

Create a listbox for f1 and make a selection

put this in you text box and check this

=IF(GetFieldSelections(f1) ,f2)

Not applicable
Author

Thank you all. It turns out it is very easy