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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to set a variable and read it later in the same trigger

Hi,

I try to change selections in listbox2 due to selections in listbox1.

To do so I created an onSelction trigger on listbox1 with the following actions:

  • get the current selection in listbox1 and set it to the variable vMySelection.
  • some changes...
  • change the selection in listbox2 to the value of variable vMySelection

But I always get the value that was set before the last execution of the trigger, not the value I set in the first action

When are variables in trigger evaluated and how can I work around that behaviour?

I use QV 11.2 and the solution has to work with the ajax client.

Thanks a lot

Klaus

11 Replies
smqlikview
Contributor II
Contributor II

Check this thread http://community.qlik.com/thread/41644

Christof Schwarz (Presales Solution Architect) presented a work around on that thread.

Good luck....please post your results for future reference by others

Best Regards

Suresh

Not applicable
Author

Thanks to Piet and Suresh,

but due to budget restrictions, we do not implement that feature, but have an alternate process defined.

Kind Regards

Klaus