Table of Contents | ||
---|---|---|
|
There are a number of advanced options for organization levels. These are shown when you click on the Advanced checkbox on the Organization Levels page.
...
Add a new repeat group, and under the "Advanced" section, set the Model Iteration ID Query to "instance('locations')/locations/location/@id". This will make one iteration of the repeat group for each location in your project. You can add a filter here if you like, or you can filter the expression later, in your lookup table question. Set the Instance ID to "locations", and the Instance URI to "jr://fixture/locations" to make sure the instance is available in the form.
...
You can use the location hierarchy to make select questions that allow you to choose a location in a form. The process is similar to setting up multiple choice questions with cases as choices.
Go to Application Settings to turn on the Custom Single and Multiple Answer Add-On in the "Calculations" section.
Add a new "multiple choice lookup table" question
In the "lookup table data" choose the 3 dots next to the list of lookup tables
Set the query to: instance('locations')/locations/location[@type = 'TYPE OF LOCATION'] NOTE: "type of location" is given for each organization level by the "type code." You can see the type code when you click on "Advanced Mode" on the Organization Levels page.
Set the instance ID to locations
Set the instance URI to jr://fixture/locations
Hit save
Set the value to "@id" and the label to "name"
...