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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Nino
Contributor III
Contributor III

Trigger on variable

Happy new year to everybody!

My first 2019 problem: I'm studying the trigger behavior and I'm not able to understand why the variable tied to a fields change but the relative triggers don't do the same.

Can someone have a look at my example, pls?

Thank you so much.

N.

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I'm not sure it's possible with Actions.  More likely you could use conditional logic or set analysis in your expression to deal with it.

-Rob

View solution in original post

3 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

What you are seeing is as designed.  The trigger is only fired for user initiated actions, not changes performed by Actions. Your field OnChange action sets a variable but this will not trigger the onChange for the variable. This is to prevent an endless cascade of triggers.  Imagine if in your example, the field OnChange trigger changed a variable and the variable OnChange trigger changed the field. would They ping-pong back and forth forever. 

-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com

Nino
Contributor III
Contributor III
Author

Hi Rob,

thak you for the explanation!

So the next question is: what about if I have to link and action to the change of a variable or a field NOT as a consequence of a direct change made up by the user?

Thanks.

N.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I'm not sure it's possible with Actions.  More likely you could use conditional logic or set analysis in your expression to deal with it.

-Rob