Prefilling or pulling data into survey ODK 2.0

Is there a method or what is the best method in ODK 2.0 to prefill survey data?
We wish to do an online survey (non ODK) then use some of this data to pre-populate a follow up field survey. What would be the best way to do this?

I have searched and seen some ways to do this in the older ODK collect suite e.g. briefcase and "pull". Do those same mechanisms exist in ODK 2.0?

Thanks.

regards,
tom

With the 2.0 tools, the best way of pre-populating data in Survey is by
running Survey in the context of Tables. Then you can use Tables to import
csv files with the data that you want to pre-populate.

You can run Survey in the context of Tables by creating a Survey widget.
Directions for how to create a widget can be found at
https://opendatakit.org/use/2_0_tools/odk-survey-2-0-rev126/#Launching_AppName
.

Directions for how to import a csv file using Tables can be found at
https://opendatakit.org/use/2_0_tools/odk-tables-2-0-rev126/#Import_from_CSV
.

You could also use a tables.init file to automatically pre-populate data.
More information about that can be found at
https://opendatakit.org/use/2_0_tools/odk-tables-2-0-rev126/#Configuring_an_App_at_Startup.

There is a way to pull data from other tables using a custom prompt in
Survey. This prompt takes a decent grasp of JavaScript to understand, but
if you are curious the code for this prompt can be found in the
app-designer repo at
https://github.com/opendatakit/app-designer/blob/master/app/tables/agriculture/forms/agriculture/customPromptTypes.js
.

The most stable build with corresponding documentation to use at this point
is rev 126.

Clarice

··· On Thu, Sep 10, 2015 at 3:44 AM, <7shriner@gmail.com> wrote:

Is there a method or what is the best method in ODK 2.0 to prefill survey
data?
We wish to do an online survey (non ODK) then use some of this data to
pre-populate a follow up field survey. What would be the best way to do
this?

I have searched and seen some ways to do this in the older ODK collect
suite e.g. briefcase and "pull". Do those same mechanisms exist in ODK 2.0?

Thanks.

regards,
tom

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

1 Like