Hi Beth,
Why don't you loop through your nodes and put the values that you need:
IXMLDOMNodeList oNodeList =
thisXDocument.DOM.selectNodes("my:myFields/my:group1/my:group2");
if (oNodeList.length>0)
{
foreach (IXMLDOMNode oN in oNodeList)
{
if( oN.nodeType == DOMNodeType.NODE_ELEMENT )
{
IXMLDOMNode oField = oN.selectSingleNode("my:field1");
oField.text = "test"; //<-- Put your value here
}
}
}
Regards,
Franck Dauché
> How do I tell what n is, given that I know which node triggered the event,
> but not where it is in the group?
[quoted text clipped - 40 lines]
> > > Thanks,
> > > BethA
BethA - 11 Nov 2005 16:15 GMT
Thanks Franck - It works! I just had to add a condition to the if statement
to make sure that the refNumber field of the oNode matched the refnumber that
caused the OnAfterChange event to occur. I'm not sure if I need the
oNode.nodeType = DOMNodeType.NODE_ELEMENT part because it seemed that every
node had that nodeType.
I think the problem with the published form not working was because it was
published on the network. Everything seems to work fine from my hard drive.
That's a question we have to talk about next week with CIS :-)
BethA
> Hi Beth,
>
[quoted text clipped - 61 lines]
> > > > Thanks,
> > > > BethA
BethA - 11 Nov 2005 16:19 GMT
I was wrong - the published form doesn't autopopulate, even when published to
my hard drive! Any ideas? Maybe I'll post a new question just about that!
BethA
> Hi Beth,
>
[quoted text clipped - 61 lines]
> > > > Thanks,
> > > > BethA