Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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