Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikView forum consolidation is complete. Labels are now required. LEARN ABOUT LABELS
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
MVP & Luminary
MVP & Luminary

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
MVP & Luminary
MVP & Luminary

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

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
MVP & Luminary
MVP & Luminary

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