Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / October 2005

Tip: Looking for answers? Try searching our database.

Access repeating section controls

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
techieTex - 10 Oct 2005 17:37 GMT
Hi,
I have a repeating section with 2 text boxes in it and both of them have
unique ID's. I'm submitting this form to a sharepoint form library.  In the
event handler associated how do i access the values of the textboxes in the
extra sections inserted?
I'm new to Infopath, any help is appreciated.
Thanks
Franck Dauché - 10 Oct 2005 19:22 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.