Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

patrou38
Contributor

value selected list box

hello,

I would like to select a value in list box based on the result o fa variable.
It doesn't work , nothing are selected

if ($(vNameChart)='Test Configuration', Lib_Testeur='titi',Lib_Testeur='toto')

thank you again for your help.

Patrick

8 Replies
MVP
MVP

Re: value selected list box

Are you using select in field trigger here? Assuming the field name is Lib_Testeur where you are making selection, try this

FieldName

Lib_Testeur


Search String

If($(vNameChart)='Test Configuration', 'titi', 'toto')

patrou38
Contributor

Re: value selected list box

no Is not in the select in filed but in the dimension..

I tried this: =if ($(vNameChart)='MMS Reference Test Configuration',Lib_Site='Spore')

but I get an error : "Garbage after expression: 'MMS...'

MVP
MVP

Re: value selected list box

May be try this

=If($(vNameChart)='MMS Reference Test Configuration',

If(Lib_Site='Spore', Lib_Site))

patrou38
Contributor

Re: value selected list box

I don't want to put or have a condition on Lib_Site list box, but I would like to Select field in this one ;-)

MVP
MVP

Re: value selected list box

I am not sure I understand you sir.... May be if you can share a sample where you are seeing an issue and point it out to us....

patrou38
Contributor

Re: value selected list box

in the picture below You can see a list box "Lib_Site.

if my Variable equal ok I would like to select automatically "Spore" in the list box otherwise no choice .

is it more clear ?

list box issu.JPG

MVP
MVP

Re: value selected list box

You want to select in a list box or do you want to have it as a calculated dimension? These are two different things... List box selection can be done using select in field action... where as calculated dimension uses if conditions.... but I am not clear as to how a calculated dimension needs to select in a list box? They are two different objects

patrou38
Contributor

Re: value selected list box

ok . I will do my select thru the select in field function -)

thank you for all

Patrick

Community Browser