You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
This code in data.js:
if (relevance.length > 0 )
binding.attrs.relevant = '(' + relevance.join(') and (') + ')';
Should be:
if (relevance.length > 0 )
binding.attrs.relevant = '(' + relevance[relevance.length-1] + ')';
Because when you create a field list group (maybe only a group) it will add the previos relevance of a question and it has some troubles when you show the information.
And example without fix:
< bind nodeset="/data/Refresco/edad" type="select1"/>
< bind nodeset="/data/Refresco/edadanios" type="string" relevant="(/data/Refresco/edad=1)"/>
< bind nodeset="/data/Refresco/edadmeses" type="string" relevant="(/data/Refresco/edad=1) and (/data/Refresco/edad=2)"/>
without fix the second question wont appear.
And with the fix:
< bind nodeset="/data/Refresco/edad" type="select1"/>
< bind nodeset="/data/Refresco/edadanios" type="string" relevant="(/data/Refresco/edad=1)"/>
< bind nodeset="/data/Refresco/edadmeses" type="string" relevant="(/data/Refresco/edad=2)"/>
But I would like to know your opinion.
I tested with relevance group and this continues working.
Maybe with nested groups does not work, I didnt test it.
After this I'm trying to refresh the windows in the collect when a question has relevant in a fieldlist group, but this is another story =).
Greetings
The text was updated successfully, but these errors were encountered:
This code in data.js:
if (relevance.length > 0 )
binding.attrs.relevant = '(' + relevance.join(') and (') + ')';
Should be:
if (relevance.length > 0 )
binding.attrs.relevant = '(' + relevance[relevance.length-1] + ')';
Because when you create a field list group (maybe only a group) it will add the previos relevance of a question and it has some troubles when you show the information.
And example without fix:
< bind nodeset="/data/Refresco/edad" type="select1"/>
< bind nodeset="/data/Refresco/edadanios" type="string" relevant="(/data/Refresco/edad=1)"/>
< bind nodeset="/data/Refresco/edadmeses" type="string" relevant="(/data/Refresco/edad=1) and (/data/Refresco/edad=2)"/>
without fix the second question wont appear.
And with the fix:
< bind nodeset="/data/Refresco/edad" type="select1"/>
< bind nodeset="/data/Refresco/edadanios" type="string" relevant="(/data/Refresco/edad=1)"/>
< bind nodeset="/data/Refresco/edadmeses" type="string" relevant="(/data/Refresco/edad=2)"/>
But I would like to know your opinion.
I tested with relevance group and this continues working.
Maybe with nested groups does not work, I didnt test it.
After this I'm trying to refresh the windows in the collect when a question has relevant in a fieldlist group, but this is another story =).
Greetings
The text was updated successfully, but these errors were encountered: