This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: don't use removed repeat instance as context for relevance (#909)
- Loading branch information
1 parent
6936b39
commit e80306a
Showing
5 changed files
with
139 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0"?> | ||
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:odk="http://www.opendatakit.org/xforms"> | ||
<h:head> | ||
<h:title>Repeat count 0 with relevant on calculate</h:title> | ||
<model odk:xforms-version="1.0.0"> | ||
<instance> | ||
<data id="relevance_on_calc_repeat_count"> | ||
<count>1</count> | ||
<repeat> | ||
<q1/> | ||
<q1_x2/> | ||
</repeat> | ||
<meta> | ||
<instanceID/> | ||
</meta> | ||
</data> | ||
</instance> | ||
<bind nodeset="/data/count" type="int"/> | ||
<bind nodeset="/data/repeat/q1" type="int"/> | ||
<bind calculate=" ../q1 * 2" nodeset="/data/repeat/q1_x2" relevant=" ../q1 > 0" type="string"/> | ||
<bind jr:preload="uid" nodeset="/data/meta/instanceID" readonly="true()" type="string"/> | ||
</model> | ||
</h:head> | ||
<h:body> | ||
<input ref="/data/count"> | ||
<label>Count</label> | ||
</input> | ||
<group ref="/data/repeat"> | ||
<label>Repeat</label> | ||
<repeat jr:count=" /data/count " nodeset="/data/repeat"> | ||
<input ref="/data/repeat/q1"> | ||
<label>Q1</label> | ||
</input> | ||
</repeat> | ||
</group> | ||
</h:body> | ||
</h:html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0"?> | ||
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:odk="http://www.opendatakit.org/xforms"> | ||
<h:head> | ||
<h:title>Relevant on calculate in repeat</h:title> | ||
<model odk:xforms-version="1.0.0"> | ||
<instance> | ||
<data id="relevance_on_calc"> | ||
<repeat> | ||
<q1/> | ||
<q1_x2/> | ||
</repeat> | ||
<meta> | ||
<instanceID/> | ||
</meta> | ||
</data> | ||
</instance> | ||
<bind nodeset="/data/repeat/q1" type="int"/> | ||
<bind calculate=" ../q1 * 2" nodeset="/data/repeat/q1_x2" relevant=" ../q1 > 0" type="string"/> | ||
<bind jr:preload="uid" nodeset="/data/meta/instanceID" readonly="true()" type="string"/> | ||
</model> | ||
</h:head> | ||
<h:body> | ||
<group ref="/data/repeat"> | ||
<label>Repeat</label> | ||
<repeat nodeset="/data/repeat"> | ||
<input ref="/data/repeat/q1"> | ||
<label>Q1</label> | ||
</input> | ||
</repeat> | ||
</group> | ||
</h:body> | ||
</h:html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters