Page 1 of 1

setvalueset function on alpha field with check box

Posted: September 11th, 2011, 10:45 am
by Guest
I would like to use the "setvalueset" function on an Alpha field with multiple answer (check box), is that possible?
So far, my best try was with the code below. The problem is that check box window turns to a drop down window when answer is "3" (but stays as a check box with answer "2")

Thank you

**********************************************
PROC Q35_CONSEIL

preproc

if Q34_ORIENTGDC = 2 then;
setvalueset(Q35_CONSEIL, Q35_CONSEIL_VS1);

elseif Q34_ORIENTGDC = 3 then;
setvalueset(Q35_CONSEIL, Q35_CONSEIL_VS2);

else skip to Q36_AUTRDEM

endif;

set attributes(Q35_CONSEIL) assisted on;

Re: setvalueset function on alpha field with check box

Posted: September 12th, 2011, 7:00 pm
by lls
Resolved

Re: setvalueset function on alpha field with check box

Posted: June 29th, 2012, 9:02 pm
by Gregory Martin
Most likely Q35_CONSEIL_VS2 did not meet the criteria for a check box field. For example, if your field (Q35_CONSEIL) is eight characters long, the value set must have eight entries to be a check box.

There is also a function, setcapturetype, that allows you to specify in logic what kind of assistance window you would like.