Lunatic
Lunatic copied to clipboard
Based-on loop is not working properly
A strange case with this questionnaire.
Description & how to reproduce
In the original questionnaire - which is not working - we have the following structure in a loop:
The loop definition in Pogues is:
We are supposed to see N iteration of the loop, N being the iteration number of the BOUCLE_PRENOMS
in this referenced questionnaire.
But this is not happening. You can try the following questionnaire in the Lunatic storybook.
Working cases
There are two cases when the questionnaire is working.
The 1st one is when we add in the last Sequence of the loop AA
a declaration including the variable T_ANNAIS
- used for the computing the T_AGE
var used in the filter (see 1st screenshot).
The VTL formula is if $T_ANNAIS$ then "" else ""
. You can check this behaviour with the following Lunatic JSON.
A second working case is when we delete the filter on the referenced questionnaire (see 1st screenshot once again), see this third questionnaire JSON.