Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Next you'll need to add a select question to the XML.

It sould should look something like: 

<select1 ref="/data/state">
<label ref="jr:itext('state-label')" />
<itemset nodeset="instance('locations')/states/state">
<label ref="name"/>
<value ref="id" />
</itemset>
</select1>

You can drill down to any level of location within this hierarchy by following this model.  For example, if your hierarchy starts at the regional level, then proceeds to state, then district, then facility.  You can reference facilities like this:

districtstate_list/state
<select1 ref="/data/outlet">
<label ref="jr:itext('
<itemset nodeset="instance('locations')/
states/state/districts/district/outlets/outlet">
<label ref="name"/>
<value ref="id" />
</itemset>
</select1>