How to access external saved forms from other form? (communicate with another form)

Hi

I have two Forms: Household.xml and Health.xml (100 questions each)

· Household: contains mainly household members

· Health: contains health information for each household member

For example:

HOUSEHOLD

HEALTH

Household_2013-08-19_10-31-34.xml

(2 Members: Juan, David)

Health_2013-08-19_10-35-34.xml (Juan)

Health_2013-08-19_10-45-28.xml (David)

Household_2013-08-20_13-10-28.xml

(3 Members: Maria, Pedro, Carlos)

Health_2013-08-20_13-15-14.xml (Maria)

Health_2013-08-20_13-18-08.xml (Pedro)

Health_2013-08-20_13-20-24.xml (Carlos)

When I fill a Health blank form, I want to access the information of each
member (age, sex, educational level Highest, …), filled in a Household
Form. ¿How I can do this?

An idea:

I need to get the INSTANCE PATH of each household form, then with an
external intent I plan to saved a mapping {HOUSEHOLD_ID, INSTANCE_PATH}
(e.g. {‘028000901’, ‘Household_2013-08-19_10-31-34.xml’} )

Then to fill a Health Blank Form for Household=‘028000901’, with other
external intent I could read the file ‘Household_2013-08-19_10-31-34.xml’,
obtaining the information that i need.

Therefore, just I need to get the INSTANCE PATH (public class
FormController.mInstancePath) in calculated question of the current form.

Is there any other way to do this?

This is painfully difficult to do with ODK Collect -- I think you have the
right approach.

It will be much easier with ODK Survey, and is one of the reasons we are
developing ODK Tables and Survey.

··· On Tue, Aug 20, 2013 at 1:48 PM, Ramon de la Cruz Lazaro < rmdlazaro@gmail.com> wrote:

Hi****


I have two Forms: Household.xml and Health.xml (100 questions each)****

· Household: contains mainly household members****

· Health: contains health information for each household member***
*


For example:****

HOUSEHOLD

HEALTH

Household_2013-08-19_10-31-34.xml****

(2 Members: Juan, David)****

Health_2013-08-19_10-35-34.xml (Juan)****

Health_2013-08-19_10-45-28.xml (David)****

Household_2013-08-20_13-10-28.xml****

(3 Members: Maria, Pedro, Carlos)****

Health_2013-08-20_13-15-14.xml (Maria)****

Health_2013-08-20_13-18-08.xml (Pedro)****

Health_2013-08-20_13-20-24.xml (Carlos)****


When I fill a Health blank form, I want to access the information of each
member (age, sex, educational level Highest, …), filled in a Household
Form. ¿How I can do this?****


An idea:****

I need to get the INSTANCE PATH of each household form, then with an
external intent I plan to saved a mapping {HOUSEHOLD_ID, INSTANCE_PATH}
(e.g. {‘028000901’, ‘Household_2013-08-19_10-31-34.xml’} )****


Then to fill a Health Blank Form for Household=‘028000901’, with other
external intent I could read the file
‘Household_2013-08-19_10-31-34.xml’, obtaining the information that i need.



Therefore, just I need to get the INSTANCE PATH (public class
FormController.mInstancePath) in calculated question of the current form.*



Is there any other way to do this?****

--

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/groups/opt_out.

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