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

P

Peter Pan

Hi,
can someone help tell me, how i can add a row to a repeating table
programmatically in c#?
I am using Infopath 2007.
 
R

Ramana

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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top