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 / May 2007

Tip: Looking for answers? Try searching our database.

How to Add a row to a Table programmatically (Infopath 2007)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Pan - 02 May 2007 10:52 GMT
Hi,
can someone help tell me, how i can add a row to a repeating table
programmatically in c#?
I am using Infopath 2007.
Ramana - 02 May 2007 13:38 GMT
Hi,

Below code is to add a row to a repeating table.

//write get the XML of repeating node into a string
string sRepeatingXml = "XML";

//create a Dom for the XMLNode
IXMLDOMDocument oXml = thisXDocument.CreateDOM();
oXml.async = false;
oXml.loadXML(sRepeatingXml);

//Get the Parent of the repeating table
ixmldomNode parentofRepeatingNode = getNode("Xpath");

//append the repeating XML Element to the Parent node
parentofRepeatingNode.appendChild(oXml.documentElement);

Signature

k.Ramana Reddy
http://www.autonomysystems.com

> Hi,
> can someone help tell me, how i can add a row to a repeating table
> programmatically in c#?
> I am using Infopath 2007.
 
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.