Copy HH members(Serial Number and Names) which is 1 selection(radio button) to a multiple choice roster(chekcbox)

Discussions about CSEntry
Post Reply
mussabahire
Posts: 43
Joined: September 5th, 2016, 4:55 am

Copy HH members(Serial Number and Names) which is 1 selection(radio button) to a multiple choice roster(chekcbox)

Post by mussabahire »

Dear Cspro team,
I have a problem where I want to display all household members to a multiple choice roster.
Kindly help me.

I want to choose which member of the Household who consummed an item.
I am still using Cspro 7.2

Thank you
Attachments
Ex.zip
(30.07 KiB) Downloaded 168 times
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Copy HH members(Serial Number and Names) which is 1 selection(radio button) to a multiple choice roster(chekcbox)

Post by josh »

You can use the valueset object and the setvalueset function to do this. Loop through the roster of household members and each member to the valueset object. Then call setvalueset to set the valueset for the question. You can see examples of page 38 of the workshop materials https://www.csprousers.org/resources/CS ... rkshop.pdf
mussabahire
Posts: 43
Joined: September 5th, 2016, 4:55 am

Re: Copy HH members(Serial Number and Names) which is 1 selection(radio button) to a multiple choice roster(chekcbox)

Post by mussabahire »

This manual is for 7.4. I was still using 7.2
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Copy HH members(Serial Number and Names) which is 1 selection(radio button) to a multiple choice roster(chekcbox)

Post by josh »

The relevant section also applies to CSPro 7.2
Post Reply