Show data from extern csv in ODK Survey with ODK Tools 2.0

Hello, I am using ODK Tools 2.0 and i need to show a message using data extracted from a csv file. For example: I have a csv that contains a list of persons.
The user of the survey select a person from a list and the survey shows the name,the nickname and the age of the selected person above.
Thanks.

There are two choices --
(1) you can import the csv into a data table and directly query it to
provide the set of choices. This allows dynamic modification of this list,
since it is maintained on the server and shared across users.
(2) you can keep the data in a static csv and directly query it.

For (2), see the selects form example (


) in app designer.

For (1), this is similar to how the household, household_member forms work.
You would define a table that has the appropriate fields, then use the
import csv functionality within ODK Tables to import your csv into that
table, sync the data up to your ODK Aggregate (so that appropriate metadata
fields are initialized), then you can either export that content to a csv,
copy that over to config/assets/csv/ and add it to the
config/assets/tables.init file so that the csv file is preloaded into that
table upon a clean install, or rely on a sync of your devices to get the
current content from the server.

ยทยทยท On Wed, Nov 2, 2016 at 1:20 PM, wrote:

Hello, I am using ODK Tools 2.0 and i need to show a message using data
extracted from a csv file. For example: I have a csv that contains a list
of persons.
The user of the survey select a person from a list and the survey shows
the name,the nickname and the age of the selected person above.
Thanks.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com