What you can do is:
CSpValue names = getDisplayFieldValue("*name");
CSpVector vNames = new CSpVector();
if (names instanceof CSpVector) {
vNames = (CSpVector) names;
} else {
vNames.put(names);
}
for (int i = 0;i<vNames.size();++i)
{
CSpValue name = vNames.get(i);
// Do something with name
}
And something simillar for email.
Brendan
TeamNetDynamics
"Andreas Amundin" <[EMAIL PROTECTED]> on 08/20/99 12:11:32 PM
To: [EMAIL PROTECTED]
cc: (bcc: Brendan Johnston/Contractor/CF/CCI)
Subject: [ND] Retrieving the information from a Repeated member variable
of an ND page
I would very much like to do the following:
Iterator repeatedItems = getRepeated("Repeated1").getItems();
while( there are more objects in repeatedItems )
{
Item name = repeatedItems.getDisplayFieldValue("name");
Item email = repeatedItems.getDisplayFieldValue("email");
// save name and email to some other structure
repeatedItems.next();
}
This is a mix of pseudocode and ND code. Is it possible to do this
somehow.
Using
name = CSpider.getWebVar (CSpUtil.constructHashIndexedKey("name",i));
doesn't seem to be the right way. Especially if there are two repeated
variables
that both have a "name" child.
Please send any ideas to [EMAIL PROTECTED]
tia,
Andreas
_________________________________________________________________________
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]