Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How can make multiple selections in listbox defaulty?

hi

how i have list box like year(2001,2002,2003,2004)

i need to select defautly 2001,2014?

how can put condition in list box?

5 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Use a trigger in the opening of the document or of the page, you can also use a trigger on a button

in  all the cases use "Select in Field" as action, insert yhe field of the year (Ex. YearField)

and insert the search condition:

YearField>=2001<=2014

let me know

maxgro
MVP
MVP

see attachment for the trigger

1.png

Not applicable
Author


am not able to see search string and field evnt trigger for on select and on change

rubenmarin1

Hi sanjeev, Massimo image was from document properties, in the configuration menu

maxgro
MVP
MVP

yes, in menù

settings --> document properties--> triggers tab --> field event trigger

and the expression is

=if(GetSelectedCount( y )=0, '(2013|2014)', '(' & GetFieldSelections( y,'|' ) &')' )

if nothing selected (0)      --> 2013 2014

else                                  --> the selection (Getfieldselctions)

if you add the expression in a textbox you can see the search string