Versions Compared

Key

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

For mobile workers assigned to locations that can "View Child Data", they can sometimes be in more than one case sharing group. The user will be required to choose which location the case gets assigned to. For example, a clinic may be required to register clients and assign them to one of their CHWs.

...

Set the question ID to owner_id (or whatever makes sense) and the label "What location do you want to assign the user to? (or whatever makes sense)".

...

Choose the "Lookup Table Data" item in the left tree, and then choose the "..." button to configure the list of choices.

...

Set the Query Expression to instance('locations')/locations/location[@type = 'TYPE OF LOCATION'] (note: be sure to change "TYPE OF LOCATION" to the specific type of location in your application. This will display the list of locations that are available to own the case.  Set the Instance ID to locations and the Instance URI to jr://fixture/locations.  Then click on the Save button. 

...

Back on the Lookup Table Data page, set the Value field to @id and the Display Text field to name.  Note that the Lookup Table dropdown should say "Lookup table not found in project".

...

Save your form, and then go to the Case Management section of the form and save the question to the case property called owner_id, which is a special property used to define the owner of the case.

...