If you drop a repeating section on a blank form (with 2 textboxes field1 and
field2), you will have the following schema:
myFields
group1
group2
field1
field2
You can loop through the node to retrieve the value stored in field1 for
example:
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");
thisXDocument.UI.Alert(oField.text);
}
}
}
Hope that it helps.
Regards,
Franck Dauché
> Hi,
> I have a repeating section with 2 text boxes in it and both of them have
[quoted text clipped - 3 lines]
> I'm new to Infopath, any help is appreciated.
> Thanks
techieTex - 11 Oct 2005 15:00 GMT
Hi Franck
Thanks for your reply. Right now I'm submitting the infopath form to a form
library. How do I access that as an XML document to try the way u suggested.
I mean how do I intialize thisXDocument to the item in the form library?
Thanks again
>If you drop a repeating section on a blank form (with 2 textboxes field1 and
>field2), you will have the following schema:
[quoted text clipped - 33 lines]
>> I'm new to Infopath, any help is appreciated.
>> Thanks
techieTex - 11 Oct 2005 16:08 GMT
To be more clear on my last post, I need to access the infopath form in the
event handler associated with a document library. I don't know if it is even
possible or not.
>If you drop a repeating section on a blank form (with 2 textboxes field1 and
>field2), you will have the following schema:
[quoted text clipped - 33 lines]
>> I'm new to Infopath, any help is appreciated.
>> Thanks
Franck Dauché - 11 Oct 2005 17:40 GMT
Not sure what you are after here. Accessing your repeating section by code
behind would still be self-contained in you xsn, right? Am I missing
someting here?
Regards,
Franck Dauché
> To be more clear on my last post, I need to access the infopath form in the
> event handler associated with a document library. I don't know if it is even
[quoted text clipped - 36 lines]
> >> I'm new to Infopath, any help is appreciated.
> >> Thanks
techieTex - 12 Oct 2005 22:13 GMT
I needed to access the repeating section controls of infopath form in the
event handler attached to a document library in the sharepoint. I guess the
code behind in xsn wouldn't solve the purpose..
>Not sure what you are after here. Accessing your repeating section by code
>behind would still be self-contained in you xsn, right? Am I missing
[quoted text clipped - 9 lines]
>> >> I'm new to Infopath, any help is appreciated.
>> >> Thanks