Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

variable dependencies, OnChange triggers, and infinite loops

Is it possible to create an infinte looping situation by having something similar to the following:

Define variable vA = somefunc(vB)

Define variable vB = somefunc(vC)

Define an input control that uses vC.    At this point, selecting a value for vC should cause vB and vA to change, right?

Now define a Document trigger such that if vA changes, set vC = vA.

1) Will changing the value of vC now trigger an infinite loop?

2) Does the internal "variable onChange trigger" logic actually compare a new value against a current value to determine if there has actually been a change of value or does any setting of the variable cause the onChange trigger action(s) to execute?

Thanks,

Steve

9 Replies
martin59
Specialist II
Specialist II

Hi Steve,

I'm not sure to understand all you want, but yes, it's possible to create an infinite loop.

Is it what you're looking for ?

Hope that helps you

Martin Favier

martin59
Specialist II
Specialist II

Hi Steve,

I'm not sure to understand all you want, but yes, it's possible to create an infinite loop.

Is it what you're looking for ?

Hope that helps you

Martin Favier

martin59
Specialist II
Specialist II

Hi Steve,

I'm not sure to understand all you want, but yes, it's possible to create an infinite loop.

Is it what you're looking for ?

Hope that helps you

Martin Favier

martin59
Specialist II
Specialist II

Hi Steve,

I'm not sure to understand all you want, but yes, it's possible to create an infinite loop.

Is it what you're looking for ?

Hope that helps you

Martin Favier

martin59
Specialist II
Specialist II

Hi Steve,

I'm not sure to understand all you want, but yes, it's possible to create an infinite loop.

Is it what you're looking for ?

Hope that helps you

Martin Favier

martin59
Specialist II
Specialist II

Hi Steve,

I'm not sure to understand all you want, but yes, it's possible to create an infinite loop.

Is it what you're looking for ?

Hope that helps you

Martin Favier

martin59
Specialist II
Specialist II

Hi Steve,

I'm not sure to understand all you want, but yes, it's possible to create an infinite loop.

Is it what you're looking for ?

Hope that helps you

Martin Favier

martin59
Specialist II
Specialist II

Hi Steve,

I'm not sure to understand all you want, but yes, it's possible to create an infinite loop.

Is it what you're looking for ?

Hope that helps you

Martin Favier

martin59
Specialist II
Specialist II

Hi Steve,

I'm not sure to understand all you want, but yes, it's possible to create an infinite loop.

Is it what you're looking for ?

Hope that helps you

Martin Favier