<?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: Add dynamic records to Repeating table on button click using c#</title><link>https://www.infopathdev.com:443/forums/thread/72610.aspx</link><pubDate>Sat, 03 Dec 2011 03:27:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72610</guid><dc:creator>stara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72610.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=72610</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to do the same. Can you please post the entire code you&amp;#39;re using?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks a lot&lt;/p&gt;</description></item><item><title>Re: Add dynamic records to Repeating table on button click using c#</title><link>https://www.infopathdev.com:443/forums/thread/34206.aspx</link><pubDate>Wed, 12 Nov 2008 20:09:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34206</guid><dc:creator>sreuben</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34206.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34206</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks. Your suggestion helped me a lot. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Add dynamic records to Repeating table on button click using c#</title><link>https://www.infopathdev.com:443/forums/thread/34155.aspx</link><pubDate>Wed, 12 Nov 2008 06:22:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34155</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34155.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34155</wfw:commentRss><description>Hi,
Get the last record of the repeating section using last() function. In that get the one field value. If that field value is blank then set the three text box values to the repeating nodes values like
thisXDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:group1/my:group2[position() = last()]/my:field1&amp;quot;).text = thisXDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:field4&amp;quot;).text;
here field4 -&amp;gt; is one of the text box field.
Group2 -&amp;gt; repeating node
If the last record field value is not empty then get the repeating node from sample xml and set the text box values in to that node and add that node to the parent node.
IXMLDOMNode tempGroup2Node = ;
 tempGroup2Node.selectSingleNode(&amp;quot;my:field1&amp;quot;).text = thisXDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:field4&amp;quot;);
//same for the remaining nodes
group1Node.appendChild(tempGroup2Node);//adding the node to the parent node</description></item><item><title>Re: Add dynamic records to Repeating table on button click using c#</title><link>https://www.infopathdev.com:443/forums/thread/34151.aspx</link><pubDate>Wed, 12 Nov 2008 06:18:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34151</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34151.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34151</wfw:commentRss><description>&lt;p&gt;It is possible, I would check the devlepors reference guide but why bother when Infopath already has controls for doing such a task.&lt;/p&gt;
&lt;p&gt;Typically in Infopath the user would just build the repeating list with the built in controls.&lt;/p&gt;
&lt;p&gt;Put drop downs in the three field in a repeating table.&lt;/p&gt;
&lt;p&gt;They set the first row, then insert a new row and pick the next combination, etc.&lt;/p&gt;
&lt;p&gt;That way no c# or anything to mess with or debug.&lt;/p&gt;</description></item><item><title>Add dynamic records to Repeating table on button click using c#</title><link>https://www.infopathdev.com:443/forums/thread/34136.aspx</link><pubDate>Tue, 11 Nov 2008 19:28:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34136</guid><dc:creator>sreuben</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34136.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34136</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have a infopath 2007 form that contains a repeating table that needs to be populated on click of the submit button. The values that needs to be populated comes from three textboxes eg. name, role, description that are present in the same form.&lt;br /&gt;&lt;br /&gt;When the user enters the first set of data and hits submit the values will be added to the first row of the repeating table. The second row should contain new set of values that are entered in the textboxes. I am using c# for coding.&lt;br /&gt;&lt;br /&gt;Is it possible to do such thing with repeating table? Kindly suggest. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>