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

Text box can change current selection

Hi everybody !

Juste a question with the text box

Is it possible to use the text box to do a selection into a list box ?

Check the example to see what I want to do

Thanks a lot for reading this post

1 Solution

Accepted Solutions
swuehl
MVP
MVP

This should be correct.

View solution in original post

8 Replies
swuehl
MVP
MVP

You could use an expression as field in your list box, maybe like:

=if(YearMonth >= date(date#(DateBegin,'MM/YYYY'),'YYYY/MM') and YearMonth <= date(date#(DateEnd,'MM/YYYY'),'YYYY/MM'),YearMonth)

You could probably also use a set expression instead of the if().

Hope this helps,

Stefan

Not applicable
Author

Hi,

  You are trying to show the dates in the list box of the selected duration. You can use the calender for selecting the dates and write the expression in the list box. Attached the qvw for your reference.

Not applicable
Author

Great! with the calendar is really what i need

Thank you for your two answers !!

Not applicable
Author

well in fact, it's not exactly what i want

It's just refrest my list box with the new values but it doesn't select the value

The list box in yours examples doesn't select values in the calendar

What i need with theses box :

I select the started date

I select the end date

And in the Current selections, table calendar is selected month between the two dates.

Is it possible with a trigger ?

swuehl
MVP
MVP

Sure,

add a trigger in document properties - Triggers on the Variables.

See attached.

Stefan

edit: wrong trigger used, hang on

swuehl
MVP
MVP

This should be correct.

Miguel_Angel_Baeyens

Hi,

If you are going to used that with charts and expressions, I recommend to take a look at this application I uplodaded for that purpose, linking dates to a master calendar, and with no need of actually select dates from a listbox, since selections in inputboxes (variables) will affect charts.

Hope that helps.

Miguel Angel Baeyens

BI Consultant

Comex Grupo Ibérica

Not applicable
Author

Thank you all for your help!