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?