-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
193dd38
commit 3342529
Showing
3 changed files
with
98 additions
and
0 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
30 changes: 30 additions & 0 deletions
30
test-forms/src/main/resources/forms/entities-with-dates-follow-up.xml
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,30 @@ | ||
<?xml version="1.0"?> | ||
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:odk="http://www.opendatakit.org/xforms" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:entities="http://www.opendatakit.org/xforms/entities"> | ||
<h:head> | ||
<h:title>Entities With Dates Follow Up</h:title> | ||
<model odk:xforms-version="1.0.0" entities:entities-version="2024.1.0"> | ||
<instance> | ||
<data id="entities-with-dates-follow_up" version="1"> | ||
<date/> | ||
<meta> | ||
<instanceID/> | ||
</meta> | ||
</data> | ||
</instance> | ||
|
||
<instance id="dates" src="jr://file-csv/dates.csv"/> | ||
|
||
<bind nodeset="/data/date" type="string"/> | ||
<bind jr:preload="uid" nodeset="/data/meta/instanceID" readonly="true()" type="string"/> | ||
</model> | ||
</h:head> | ||
<h:body> | ||
<select1 ref="/data/date"> | ||
<label>Select date</label> | ||
<itemset nodeset="instance('dates')/root/item"> | ||
<value ref="name"/> | ||
<label ref="date"/> | ||
</itemset> | ||
</select1> | ||
</h:body> | ||
</h:html> |
52 changes: 52 additions & 0 deletions
52
test-forms/src/main/resources/forms/entities-with-dates-registration.xml
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,52 @@ | ||
<?xml version="1.0"?> | ||
<h:html | ||
xmlns="http://www.w3.org/2002/xforms" | ||
xmlns:h="http://www.w3.org/1999/xhtml" | ||
xmlns:ev="http://www.w3.org/2001/xml-events" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:jr="http://openrosa.org/javarosa" | ||
xmlns:orx="http://openrosa.org/xforms" | ||
xmlns:odk="http://www.opendatakit.org/xforms" | ||
xmlns:entities="http://www.opendatakit.org/xforms/entities"> | ||
<h:head> | ||
<h:title>Entities With Dates Registration</h:title> | ||
<model odk:xforms-version="1.0.0" entities:entities-version="2024.1.0"> | ||
<itext> | ||
<translation lang="English"> | ||
<text id="/data/name:label"> | ||
<value>Name</value> | ||
</text> | ||
<text id="/data/date:label"> | ||
<value>Select date</value> | ||
</text> | ||
</translation> | ||
</itext> | ||
<instance> | ||
<data id="entities-with-dates-registration"> | ||
<name/> | ||
<date>2024-11-15</date> | ||
<meta> | ||
<instanceID/> | ||
<entity dataset="dates" id="" create="1"> | ||
<label/> | ||
</entity> | ||
</meta> | ||
</data> | ||
</instance> | ||
<bind nodeset="/data/name" type="string"/> | ||
<bind nodeset="/data/date" type="date" entities:saveto="date"/> | ||
<bind nodeset="/data/meta/instanceID" type="string" readonly="true()" jr:preload="uid"/> | ||
<bind nodeset="/data/meta/entity/@id" type="string" readonly="true()"/> | ||
<setvalue ref="/data/meta/entity/@id" event="odk-instance-first-load" type="string" readonly="true()" value="uuid()"/> | ||
<bind nodeset="/data/meta/entity/label" calculate=" /data/name " type="string" readonly="true()"/> | ||
</model> | ||
</h:head> | ||
<h:body> | ||
<input ref="/data/name"> | ||
<label ref="jr:itext('/data/name:label')"/> | ||
</input> | ||
<input ref="/data/date"> | ||
<label ref="jr:itext('/data/date:label')"/> | ||
</input> | ||
</h:body> | ||
</h:html> |