Chip
Thanks for the help. I have attempted this approach and now, every time
I reference the checkbox, I get null regardless of whether it is checked
or not. I have done the following:
<RepeatedA>
<RepeatedB>
ckInclude0
ckInclude0[1]
ckInclude0[2]
ckInclude0[3]
<RepeatedA>
<RepeatedB>
ckInclude1
ckInclude1[1]
ckInclude1[2]
ckInclude1[3]
In the onBeforeHTMLOutput event for the checkbox, I create the new
"HashRoot" and set the HTML to the new value. I have verified this by
viewing the HTML generated (view source). Also, before getting the
value from the current check box via constructHashIndexedKey, I am
printing the "HashRoot" to the screen and it matches what I'm looking
for.
Since the return from the HashIndexedKey is null, I am assuming that it
can't find the checkbox within the repeated. Did I miss something in
the implementation?
Any additional help from anyone would be greatly appreciated.
Bob Eovine
General Cinema
[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 27, 1999 4:58 PM
To: [EMAIL PROTECTED]
Subject: Re: [ND] Checkboxes and Nested Repeated
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]
_________________________________________________________________________
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]