SetValueset

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
Leonard
Posts: 4
Joined: June 9th, 2021, 10:58 am

SetValueset

Post by Leonard »

Hello team
I have an issue here; Have used setvalueset on District valuset so that it shows only specific district per each province. The code is working fine but on Android it is only displaying district for the first province. How can i solve this problem now that people are already collecting data.

here are sample logic:
PROC DISTRICT
preproc

if PROVINCE = 2 then
setvalueset(DISTRICT, DISTRICT_VS2)
elseif
PROVINCE = 3 then
setvalueset(DISTRICT, DISTRICT_VS3)
Arjun Brti
Posts: 49
Joined: October 15th, 2020, 3:40 am

Re: SetValueset

Post by Arjun Brti »

Used to Onfocus instated of Preproc.
sherrell
Posts: 397
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: SetValueset

Post by sherrell »

Hi Leonard,

If PROVINCE is keyed in prior to the DISTRICT variable, then your logic should work. What happens when you reach the district variable, is the wrong valueset being used, or is no valueset being used?

If you could post it here, we can take a look at it. If you'd rather not post it to the forum, you can send it to us at cspro@lists.census.gov

Please be sure to zip up the application and provide a sample dataset that has all data values up to the point of the error.

Thanks,
Sherrell
Leonard
Posts: 4
Joined: June 9th, 2021, 10:58 am

Re: SetValueset

Post by Leonard »

thank you, let me zip and send the folder.
Post Reply