Transfer data between questionnaires linked by a menu on Android
-
- Posts: 8
- Joined: July 11th, 2017, 2:46 pm
Transfer data between questionnaires linked by a menu on Android
I have a menu program that links a household questionnaire to a male and female questionnaire. In the household questionnaire, we have a roster for the household, and a subsequent randomization that picks an "index child" from the roster. On my computer, I am able to transfer this information (roster + randomization result) to the male and female questionnaires, however, on an Android tablet, this function is not working for me. Is there a solution to this?
Re: Transfer data between questionnaires linked by a menu on Android
Have you used household questionnaire as an external dictionary of male/female questionnaires?
G.VOLNY, a CSProuser from Haiti, since 2004
-
- Posts: 8
- Joined: July 11th, 2017, 2:46 pm
Re: Transfer data between questionnaires linked by a menu on Android
I am unsure how to use an external dictionary when they are both being collected at the same time - ie, the enumerator is at the household and first goes through the household questionnaire - which would serve as the basis for the look up file for the male and female questionnaires. Is there a way to create this external dictionary and look up in real time?
Re: Transfer data between questionnaires linked by a menu on Android
I would like refer to your original post. On your computer you say you are able to transfer the information to the male/female questionnaire. How are you doing this and why is it failing on Android?
-
- Posts: 8
- Joined: July 11th, 2017, 2:46 pm
Re: Transfer data between questionnaires linked by a menu on Android
Code: Select all
preproc
Menu=accept("Menu","Household","Male","Female","Anthropometry");
if Menu = 1 then
execPFF("F:\IFPRI\SPIR_Menu\HH_Male_Female_lookup_fixed\HH_Male_Female_lookup_fixed\HH_Male_Female\HH\SPIR baseline HH questionnaire.pff");
elseif Menu = 2 then
execPFF("F:\IFPRI\SPIR_Menu\HH_Male_Female_lookup_fixed\HH_Male_Female_lookup_fixed\HH_Male_Female\HH\Exporter_app.exf.pff");
execPFF("F:\IFPRI\SPIR_Menu\HH_Male_Female_lookup_fixed\HH_Male_Female_lookup_fixed\HH_Male_Female\Male\SPIR baseline MM questionnaire.pff");
elseif Menu = 3 then
execPFF("F:\IFPRI\SPIR_Menu\HH_Male_Female_lookup_fixed\HH_Male_Female_lookup_fixed\HH_Male_Female\HH\Exporter_app.exf.pff");
execPFF("F:\IFPRI\SPIR_Menu\HH_Male_Female_lookup_fixed\HH_Male_Female_lookup_fixed\HH_Male_Female\Female\SPIR Baseline FF Questionnaire.pff");
elseif Menu = 4 then
execPFF("F:\IFPRI\SPIR_Menu\HH_Male_Female_lookup_fixed\HH_Male_Female_lookup_fixed\HH_Male_Female\Anthropometry\SPIR Baseline Anthropometry.pff");
endif;
stop(1);
Re: Transfer data between questionnaires linked by a menu on Android
Your paths are referring to the F: drive on Windows. We need to construct a path that will work on Windows and Android. We can do this with the pathname function.
execPFF(pathname(application) + "IFPRI\SPIR_Menu\HH_Male_Female_lookup_fixed\HH_Male_Female_lookup_fixed\HH_Male_Female\HH\SPIR baseline HH questionnaire.pff");
-
- Posts: 8
- Joined: July 11th, 2017, 2:46 pm