<?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: Please help me about inserting new row in repeating table while submission.</title><link>https://www.infopathdev.com:443/forums/thread/23429.aspx</link><pubDate>Wed, 03 Oct 2007 17:22:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23429</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23429.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=23429</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I found this code snippet to insert a node when click the button (for instance Submit button) for IP 2007:&lt;/p&gt;
&lt;p&gt;&lt;span id="ctl00_ContentPlaceHolder1_ctl00_mtxtArticleBody"&gt;Please try the following codes in InfoPath 2007:&lt;br /&gt;public void CTRL6_5_Clicked(object sender, ClickedEventArgs e)&lt;br /&gt;{&lt;br /&gt;// Write your code here.&lt;br /&gt;XPathNavigator ContextNode = &lt;br /&gt;this.MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:group1/my:group2&amp;quot;, &lt;br /&gt;NamespaceManager);&lt;br /&gt;this.CurrentView.SelectNodes(ContextNode);&lt;br /&gt;this.CurrentView.ExecuteAction(ActionType.XCollectionInsert, &lt;br /&gt;&amp;quot;group2_1&amp;quot;);&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will see if I can find out a way to do it by rule.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Stephanie&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Stephanie&lt;/p&gt;&lt;/span&gt;</description></item><item><title>Please help me about inserting new row in repeating table while submission.</title><link>https://www.infopathdev.com:443/forums/thread/23412.aspx</link><pubDate>Wed, 03 Oct 2007 12:33:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23412</guid><dc:creator>jatuphum</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23412.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=23412</wfw:commentRss><description>&lt;p&gt;I want to know solution about submission. I want to insert new row into repeating table when I push submit button.&lt;/p&gt;
&lt;p&gt;I know only that when I submit form, I can set &amp;quot;rule&amp;quot; for set value to specific field. But I don&amp;#39;t know about insert new row&amp;nbsp;and then set value to new&amp;nbsp;inserted row.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How should I do?&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;</description></item></channel></rss>