Page 1 of 1

Use record for following roster

Posted: May 19th, 2020, 1:22 pm
by lisa_zett
Hey,

I have the following question...
Is it possible to use the record of one roster for a following one?
So for example, if the interviewee is asked to list the names of Household members in one roster and I would like to use these in another roster, is it possible to avoid asking again for a list of names?


Thanks!

And kind regards
Lisa

Re: Use record for following roster

Posted: May 19th, 2020, 2:08 pm
by aaronw
The record defines the structure of the dictionary and this is how the data will be stored. It can't be reused. Instead, we pre-fill variables of the second record with variables from the first. I've attached an example project that has a HOUSEHOLD_MEMBERS and FERTILITY record. Enter a few household members and notice that when you move the the fertility roster the females have been pre-filled.

Re: Use record for following roster

Posted: May 19th, 2020, 3:54 pm
by lisa_zett
I don't know why, but it's not working.

Please find attached my Data Entry file

Re: Use record for following roster

Posted: May 20th, 2020, 5:19 pm
by aaronw
There are a few files missing. Use the Pack Application tool under Tools to zip up the application.

Re: Use record for following roster

Posted: May 21st, 2020, 4:44 am
by lisa_zett
Hope now its better

Re: Use record for following roster

Posted: May 21st, 2020, 4:21 pm
by aaronw
The prefill logic in the postproc of the roster is not being run, because of the skip to RISK_COVID_19. Instead use endgroup.
if HH_NAME = "" then
    if accept
("Is this householde complete?", "Yes", "No") = 1 then
        //skip to RISK_COVID_19;
       
endgroup;
   
else
        reenter
;
   
endif;
endif;

Re: Use record for following roster

Posted: May 24th, 2020, 4:21 am
by lisa_zett
Thank you!