Here's a solution (probably not the only one :-)  ) that went to Mike directly:

We have the same kind of page (in ND5) so I assume in your repeating group, 
when the yes/no radio buttons don't apply, you are doing a 
PROCEED_BUT_SKIP_BUILTIN_HANDLING.  
If so, then the code below should populate your vector and session object with
 the yes/no replies and nulls as appropriate.

// read and save the Y/N answer flag info
v_answer_flag.clear();
try
{       v_answer_flag = (CSpVector) getDisplayFieldValue("*rbYesNo");
}
catch(Exception ex)
{       // if only one value
        CSpRadioButton rbYesNo = (CSpRadioButton) getDisplayField("*rbYesNo");
        v_answer_flag.put(rbYesNo.getValue());          
}                               
CSpider.putUserSessionObject("svAnswerFlagVector",v_answer_flag);

Hope this answers your question.





Aby Mathew <[EMAIL PROTECTED]> wrote:
>Mike,
>
>Instead of using getDisplayFieldValue() to get a CSpVector of values, in
>this case, you might be better off using
>CSpider.getWebVar(CSpUtil.constructHashIndexedKey(fieldName, index)) to get
>the individual values, expecting null for those questions which are not
>answered. You were not doing anything wrong. If a question is not answered
>the browser doen't send the name-value-pairs for that, and ND puts together
>whatever it gets.
>
>Aby
>TeamND 
>
>> -----Original Message-----
>> From: Mike Mulligan [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, April 11, 2000 1:09 PM
>> To: [EMAIL PROTECTED]
>> Subject: [ND] Problem/Misunderstanding using the Repeated Object
>> 
>> 
>> 
>> I am using a Repeated object which is placed on a page as a 
>> series of questions
>> along with possible answers (eg, yes/no radio buttons).  
>> Since not all questions 
>> need to be answered, I cannot not tie which answers go to 
>> which questions.
>> When I retrieve the question numbers, I get {1, 2, 3, 4, 5}.  
>> When I retrieve the
>> answers, I get {Yes, Yes, No}.  Of the 5 questions, I cannot 
>> determine which of the
>> answers go with which question.  Am I missing something here? 
>>  Thank you in advance.
>> 
>> 
>> ______________________________________________________________
>> ___________
>> To unsubscribe from this mailing list please send an email to:
>> [EMAIL PROTECTED]
>> Please remember to use the same email address you subscribed with.
>> 
>> For help in using, subscribing, and unsubscribing to the discussion
>> forums, please go to: 
>> http://www.netdynamics.com/support/visitdevfor.> html
>> 
>> For dire 
>> need help, email: [EMAIL PROTECTED]
>> 


_________________________________________________________________________
To unsubscribe from this mailing list please send an email to:
[EMAIL PROTECTED]
Please remember to use the same email address you subscribed with.

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to