<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Help with repeating table</title><link>https://www.infopathdev.com:443/forums/thread/39397.aspx</link><pubDate>Wed, 11 Mar 2009 05:27:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39397</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39397.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=39397</wfw:commentRss><description>&amp;nbsp; 
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Add the following code lines.&lt;/p&gt;
&lt;p&gt;// get a reference to the node the repeating table is bound to&lt;/p&gt;
&lt;p&gt;IXMLDOMNode row = thisXDocument.DOM.selectSingleNode(&amp;quot;my:repeatingtable&amp;quot;);&lt;/p&gt;
&lt;p&gt;// make a copy of the node by cloning it&lt;/p&gt;
&lt;p&gt;row = row.cloneNode(true);&lt;/p&gt;
&lt;p&gt;// set the new values of the row&amp;#39;s fields&lt;/p&gt;
&lt;p&gt;row.selectSingleNode(&amp;quot;my:field1&amp;quot;).text = &amp;quot;new row field1&amp;quot;;&lt;/p&gt;
&lt;p&gt;row.selectSingleNode(&amp;quot;my:field2&amp;quot;).text = &amp;quot;new row field2&amp;quot;;&lt;/p&gt;
&lt;p&gt;row.selectSingleNode(&amp;quot;my:field3&amp;quot;).text = Ttaxie;&lt;/p&gt;
&lt;p&gt;// append the cloned row to the parent node&lt;/p&gt;
&lt;p&gt;IXMLDOMNode parent = thisXDocument.DOM.selectSingleNode(&amp;quot;/my:myFields&amp;quot;);&lt;/p&gt;
&lt;p&gt;parent.appendChild(row);&lt;/p&gt;
&lt;p&gt;Note: The above code is in C#.&lt;/p&gt;</description></item><item><title>Help with repeating table</title><link>https://www.infopathdev.com:443/forums/thread/39365.aspx</link><pubDate>Tue, 10 Mar 2009 14:05:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39365</guid><dc:creator>doctorcpu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39365.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=39365</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;How do I add a new row to a repeating table withthe value of TTaxie below assigned to Field3 of the table?&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; fieldValue1 &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; = MainDataSource.CreateNavigator().SelectSingleNode( _&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:field11&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; TTaxie &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; = fieldValue1&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Thanks&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>