Assuming there is some key value from
RepeatedA driving values for RepeatedB,
I would recommend renaming the checkbox
on the way into the stream 
(onBeforeHtmlOutputEvent)

<RepeatedA>
   <RepeatedB>
      ckIncludeA1
      ckIncludeA1[1]
      ckIncludeA1[2]
      ckIncludeA1[3]
<RepeatedA>
   <RepeatedB>
      ckIncludeA2
      ckIncludeA2[1]
      ckIncludeA2[2]
      ckIncludeA2[3]

Then, in the outer loop you could change the 
root of the hash key: 

sHashRoot = "ckInclude"+keyForRepeatedA, 

and change the getWebVar call to use the
current hash root:

CSpider.getWebVar(CSpUtil.constructHashIndexedKey(sHashRoot, j)

-Chip
Team NetDynamics
[EMAIL PROTECTED] wrote:
>I have seen some similar threads on this topic so I apologize for the>redundancy.>I
         have two repeated A and B which, when displayed look like 
the>following>><Repeated
         A>>    <Repeated B>>   <Repeated B>>   <Repeated B>>   <Repeated B>><Repeated 
A>>      <Repeated
         B>>    <Repeated B>>   <Repeated B>>   <Repeated B>>>Within <Repeated B>, I 
have a checkbox
         called ckInclude.  Once the page>is displayed, viewing the source gives the 
following:>><Repeated
         A>>    <Repeated B>ckInclude>  <Repeated B>ckInclude[1]>       <Repeated 
B>ckInclude[2]>       <Repeated
         B>ckInclude[3]><Repeated A>>   <Repeated B>ckInclude>  <Repeated 
B>ckInclude[1]>       <Repeated
         B>ckInclude[2]>        <Repeated B>ckInclude[3]>>I also have an update which 
scrolls through
         both the repeated getting>the values from the checkboxes.  >It uses a nested 
loop>for(int
         i = 0; i < NumOfRepeatedA; i++)>       for(j=0; j < NumOfRepeatedB; j++)  -> 
Where NumOfRepeatedB
         is>the number of repeated rows between <Repeated A> occurrences.>             
 {>                      CSpValue
         vInclude =>CSpider.getWebVar(CSpUtil.constructHashIndexedKey("ckInclude", 
j));>                }>>If
         I check the second occurrence of ckInclude[3], the page believes that>I have 
selected
         the first occurrence of ckInclude[3] and gives me the>incorrect values. Since 
it
         appears that there are two checkboxes with>the same name, the page is getting 
confused.>>Is
         there any solution to this?  I did not build the original page, so I>am 
unsure if
         anything strange was done during the creation.  I couldn't>find anything 
unusual
         in the code or the HTML regarding the checkbox.>>Thanks>Bob Eovine>General 
Cinema>[EMAIL PROTECTED]>
_________________________________________________________________________

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