build
build copied to clipboard
add support for jr:count in groups
Issue by mitchellsundt
Thursday Jul 09, 2015 at 18:03 GMT
Originally opened as https://github.com/opendatakit/opendatakit/issues/260 (0 comment(s))
Originally reported on Google Code with ID 259
add option for a group to repeat n times.
the trick here is that the count value can be based on a previous node. it'd be useful
to let people pick that node, or specify a custom value.
<instance>
<data>
<repeat_count_a>2</repeat_count_a>
<repeat_node_a>
<repeat_string_a/>
</repeat_node_a>
</data>
</instance>
<bind nodeset="/data/repeat_count_a" type="integer"/>
<bind nodeset="/data/repeat_node_a"/>
<bind nodeset="/data/repeat_node_a/repeat_string_a" type="string"/>
<group>
<label>repeat node a</label>
<repeat nodeset="/data/repeat_node_a" jr:count="/data/repeat_count_a">
<input ref="/data/repeat_node_a/repeat_string_a">
<label>this should repeat <output value="/data/repeat_count_a"/> times and finish</label>
</input>
</repeat>
</group>
Reported by yanokwa on 2011-07-11 19:13:27