Use record for following roster

Discussions about CSEntry
Post Reply
lisa_zett
Posts: 9
Joined: May 15th, 2020, 12:55 pm

Use record for following roster

Post 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
aaronw
Posts: 565
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Use record for following roster

Post 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.
Attachments
roster-prefill.zip
(3.26 KiB) Downloaded 180 times
lisa_zett
Posts: 9
Joined: May 15th, 2020, 12:55 pm

Re: Use record for following roster

Post by lisa_zett »

I don't know why, but it's not working.

Please find attached my Data Entry file
Attachments
CSPro.zip
(508 Bytes) Downloaded 167 times
aaronw
Posts: 565
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Use record for following roster

Post by aaronw »

There are a few files missing. Use the Pack Application tool under Tools to zip up the application.
lisa_zett
Posts: 9
Joined: May 15th, 2020, 12:55 pm

Re: Use record for following roster

Post by lisa_zett »

Hope now its better
Attachments
CSPro (2).zip
(223.11 KiB) Downloaded 160 times
aaronw
Posts: 565
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Use record for following roster

Post 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;
lisa_zett
Posts: 9
Joined: May 15th, 2020, 12:55 pm

Re: Use record for following roster

Post by lisa_zett »

Thank you!
Post Reply