Repeat group

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
mahendra
Posts: 7
Joined: June 26th, 2017, 7:17 am

Repeat group

Post by mahendra »

I want to use repeat group in CAPI application, can someone explain me?
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Repeat group

Post by Gregory Martin »

You'll have to provide more details about what you're interested in doing. The Getting Started Guide has information about repeating records:

https://www.census.gov/population/inter ... tart70.pdf
mahendra
Posts: 7
Joined: June 26th, 2017, 7:17 am

Re: Repeat group

Post by mahendra »

I want to create multiple occurrence for age, relation, education,occupation and income as per the number of members in the household. please help me to do this
mahendra
Posts: 7
Joined: June 26th, 2017, 7:17 am

Re: Repeat group

Post by mahendra »

I am trying to add logic for group occurrence but logic option is not display in the dictionary. please guide me
khurshid.arshad
Posts: 571
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Re: Repeat group

Post by khurshid.arshad »

Dear Mahendra;

You can write logic only in Form Design. You can find Forms design icon next to the dictionary icon in toolbar.
a.
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Repeat group

Post by josh »

Take a look at the CAPI getting started guide (https://www.census.gov/population/inter ... tarted.pdf) and the simple CAPI application in the examples folder. They do two things to get the repeat group for household members:

1) In the dictionary, make the max occurrences of the record for the repeating group the maximum number of household members you could have, i.e. the size of the largest possible household.

2) In the logic add a call to the command "endgroup" to end entry of the group once all household members have been entered. In the above examples this is done when the interviewer enters a blank name (see section 5 of the CAPI getting started guide). Personally instead of using a blank name I prefer adding another question to the repeating group ("Are there more household members: yes/no") since the blank name is a bit hidden. You can see and example of that here: http://teleyah.com/cspro/SouthAfricaOct ... apter2.zip
Post Reply