<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Insert Blank Rows to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/101145.aspx</link><pubDate>Wed, 11 Feb 2015 19:01:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101145</guid><dc:creator>JonesAF</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101145.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=101145</wfw:commentRss><description>Hi Hilary, I have a similar situation. I think what you have shared here has gotten me part of the way. Here is what I have done so far:

What I am trying to do is simple, but I cannot figure it out. I am ready to just give up so please help.

1. How do I create and XML structure that I can then read back into InfoPath to automatically insert the values from my XML into my repeating table? 
2. I would like to use a drop-down list to select / set the XMLml file it should be reading in. thanks for any help 

Here is my current XML structure based the one you shared here:





sampledata.xml


&lt;BLOCKQUOTE&gt;&lt;div&gt;

	
		
			
			
			
			
		
	
	
		
			
		
	

&lt;/div&gt;&lt;/BLOCKQUOTE&gt;





My current c#(2007) code

&lt;BLOCKQUOTE&gt;&lt;div&gt;

&amp;quot;using Microsoft.Office.InfoPath;
using System;
using System.Windows;
using System.Xml;
using System.Xml.XPath;

namespace CustomRepeatingSection
{
    public partial class FormCode
    {
        // Member variables are not supported in browser-enabled forms.
        // Instead, write and read these values from the FormState
        // dictionary using code such as the following:
        //
        // private object _memberVariable
        // {
        //     get
        //     {
        //         return FormState[&amp;quot;_memberVariable&amp;quot;];
        //     }
        //     set
        //     {
        //         FormState[&amp;quot;_memberVariable&amp;quot;] = value;
        //     }
        // }

        // NOTE: The following procedure is required by Microsoft InfoPath.
        // It can be modified using Microsoft InfoPath.
        public void InternalStartup()
        {
            EventManager.FormEvents.Loading += new LoadingEventHandler(FormEvents_Loading);
            
        }

        public void FormEvents_Loading(object sender, LoadingEventArgs e)
        {
            //get your repeating group. The XPath in quotes needs to change according to your form&amp;#39;s data structure
            //you want to add a new row only if there is no completely blank row available, so we will filter our XPath to only select a group where all the fields are blank
            //my group only has two fields. Yours may be different. You&amp;#39;ll need to change the bit in the square brackets to address your data structure
            XPathNavigator parent = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:topGroup&amp;quot;, NamespaceManager);
            XPathNavigator group = parent.SelectSingleNode(&amp;quot;my:repeatingGroup[my:rgField1 = &amp;#39;&amp;#39; and my:rgField2 = &amp;#39;&amp;#39; and my:rgField3 = &amp;#39;&amp;#39; and my:rgField4 = &amp;#39;&amp;#39;]&amp;quot;, NamespaceManager);
            //MessageBox.Show(&amp;quot;this method was executed at runtime&amp;quot;);
            //if our variable group is null, we have no &amp;#39;empty&amp;#39; rows in our form and need to add one
            if (null == group)
            {
               
                //get our repeating group from sampledata.xml
                XmlDocument sample = new XmlDocument();
                //sample.Load(this.Template.OpenFileFromPackage(&amp;quot;https://team.duke-energy.com/sites/PMCoEP/PMCoE%20Qualification%20Card/QCAssetLib/sampledata.xml&amp;quot;)); //sampledata.xml
                sample.Load(&amp;quot;sampledata.xml&amp;quot;);

                XPathNavigator newGroup = sample.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:topGroup/my:repeatingGroup&amp;quot;, NamespaceManager);

                parent.AppendChild(newGroup);
           

            }

        }
       
    }
}


&lt;/div&gt;&lt;/BLOCKQUOTE&gt;</description></item><item><title>Re: Insert Blank Rows to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/83128.aspx</link><pubDate>Mon, 01 Oct 2012 06:11:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83128</guid><dc:creator>LeslieAD</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83128.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=83128</wfw:commentRss><description>&lt;p&gt;Not sure if this topic is closed, or whether it should resurrect with each new InfoPath version :-(&lt;/p&gt;&lt;p&gt;How would I insert a new row in InfoPath 2010?&lt;/p&gt;&lt;p&gt;Ideally I intend using a Repeating Table for record the Review Dates when a list item is viewed (or reviewed with comments)&lt;/p&gt;&lt;p&gt;The RT will initially be empty and the first row will have the access date added when the form is closed. Next time the form is opened the RT needs to have a row added to enable the new access date to be inserted.&lt;/p&gt;&lt;p&gt;Any thoughts would be greatly appreciated&lt;/p&gt;&lt;p&gt;leslie&lt;/p&gt;</description></item><item><title>Re: Insert Blank Rows to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/74473.aspx</link><pubDate>Tue, 24 Jan 2012 14:24:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:74473</guid><dc:creator>jaxkookie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/74473.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=74473</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;
&lt;p&gt;I can really use this solution but I am struggling trying to get it to work. I am not sure if it is the structure of my XML file or something else. I run this on button clik&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;XPathNavigator parent = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:CommoditySummary/my:Line_Items&amp;quot;, NamespaceManager);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp; //get our repeating group from sampledata.xml&lt;br /&gt;&amp;nbsp; XmlDocument sample = new XmlDocument();&lt;br /&gt;&amp;nbsp;&amp;nbsp;sample.Load(this.Template.OpenFileFromPackage(&amp;quot;CmdtyRow.xml&amp;quot;));&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;XPathNavigator newGroup = sample.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:CommoditySummary/my:Line_Items/my:Commodity&amp;quot;, NamespaceManager);&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;parent.AppendChild(newGroup) XPathNavigator parent = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:CommoditySummary/my:Line_Items&amp;quot;, NamespaceManager);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;//get our repeating group from sampledata.xml&lt;br /&gt;&amp;nbsp;&amp;nbsp;XmlDocument sample = new XmlDocument();&lt;br /&gt;&amp;nbsp;sample.Load(this.Template.OpenFileFromPackage(&amp;quot;CmdtyRow.xml&amp;quot;));&lt;/p&gt;
&lt;p&gt;&amp;nbsp;XPathNavigator newGroup = sample.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:CommoditySummary/my:Line_Items/my:Commodity&amp;quot;, NamespaceManager);&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp; parent.AppendChild(newGroup); // here I get an error value cannot be null Parameter name: newChild&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;</description></item><item><title>Re: Insert Blank Rows to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/43754.aspx</link><pubDate>Thu, 02 Jul 2009 17:38:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43754</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43754.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=43754</wfw:commentRss><description>&lt;p&gt;RIght, but as discussed earlier in this thread, you can&amp;#39;t use the 2003 object model in browser compatible forms....&lt;/p&gt;</description></item><item><title>Re: Insert Blank Rows to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/43705.aspx</link><pubDate>Thu, 02 Jul 2009 02:56:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43705</guid><dc:creator>MarsdeNation</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43705.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=43705</wfw:commentRss><description>&lt;p&gt;Fantastic!&amp;nbsp; &lt;b&gt;Thank you so much!&lt;/b&gt;&lt;/p&gt;&lt;p&gt;I had some trouble publishing the form template, but I found a half decent and reasonably easy to understand description here:&amp;nbsp;&lt;/p&gt;&lt;p&gt;http://blogs.interknowlogy.com/jeffschroeder/archive/2006/10/31/7913.aspx &lt;/p&gt;&lt;p&gt;Weird that such a simple thing like &amp;quot;&lt;i&gt;insert a new row if data source is empty&amp;quot; &lt;/i&gt;is so hard to make happen ...&lt;br /&gt;&lt;/p&gt;&lt;p&gt;As a side note, I found in &lt;b&gt;Tools / Options / Design&lt;/b&gt; an option &amp;quot;Programming language when designing forms in infopath:&amp;quot;, where I could change it from C# to C# (Infopath 2003 Compatible). Changing this may have made my form accept the original 2003 code posted above, but I have not tested this ... Now that My form is working I&amp;#39;m not touching it!&lt;/p&gt;&lt;p&gt;Thanks again. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Insert Blank Rows to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/43699.aspx</link><pubDate>Wed, 01 Jul 2009 22:42:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43699</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43699.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=43699</wfw:commentRss><description>&lt;p&gt;So, if Technician Comments is blank, you want to add a new row?&lt;/p&gt;
&lt;blockquote&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;public&lt;/font&gt; &lt;font color="#0000ff"&gt;void&lt;/font&gt; FormEvents_Loading(&lt;font color="#0000ff"&gt;object&lt;/font&gt; sender, &lt;font color="#2b91af"&gt;LoadingEventArgs&lt;/font&gt; e)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#008000"&gt;//get your repeating group. The XPath in quotes needs to change according to your form&amp;#39;s data structure&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#008000"&gt;//you want to add a new row only if there is no completely blank row available, so we will filter our XPath to only select a group where all the fields are blank&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#008000"&gt;//my group only has two fields. Yours may be different. You&amp;#39;ll need to change the bit in the square brackets to address your data structure&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#2b91af"&gt;XPathNavigator&lt;/font&gt; parent = MainDataSource.CreateNavigator().SelectSingleNode(&lt;font color="#a31515"&gt;&amp;quot;/my:myFields/my:TechnicianPage/my:TechComments&amp;quot;&lt;/font&gt;, NamespaceManager);&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#2b91af"&gt;XPathNavigator&lt;/font&gt; group = parent.SelectSingleNode(&lt;font color="#a31515"&gt;&amp;quot;my:group7[my:TechnicianComments = &amp;#39;&amp;#39;]&amp;quot;&lt;/font&gt;, NamespaceManager);&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#008000"&gt;//if our variable group is null, we have no &amp;#39;empty&amp;#39; rows in our form and need to add one&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;if&lt;/font&gt; (&lt;font color="#0000ff"&gt;null&lt;/font&gt; == group)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#008000"&gt;//get our repeating group from sampledata.xml&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#2b91af"&gt;XmlDocument&lt;/font&gt; sample = &lt;font color="#0000ff"&gt;new&lt;/font&gt; &lt;font color="#2b91af"&gt;XmlDocument&lt;/font&gt;();&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sample.Load(&lt;font color="#0000ff"&gt;this&lt;/font&gt;.Template.OpenFileFromPackage(&lt;font color="#a31515"&gt;&amp;quot;sampledata.xml&amp;quot;&lt;/font&gt;));&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#2b91af"&gt;XPathNavigator&lt;/font&gt; newGroup = sample.CreateNavigator().SelectSingleNode(&lt;font color="#a31515"&gt;&amp;quot;/my:myFields/my:TechnicianPage/my:TechComments/my:group7&amp;quot;&lt;/font&gt;, NamespaceManager);&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parent.AppendChild(newGroup);&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:115%;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:10pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;Hopefully I don&amp;#39;t have any typos in the XPaths and this will just work for you.&lt;/p&gt;</description></item><item><title>Re: Insert Blank Rows to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/43643.aspx</link><pubDate>Wed, 01 Jul 2009 01:30:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43643</guid><dc:creator>MarsdeNation</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43643.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=43643</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Hilary, thank you for your help :)&lt;/p&gt;&lt;p&gt;Apologies for the Noob Question, but code gives me a headache and I really don&amp;#39;t know how to enter the references to my data source in the square brackets as you have mentioned in the comments of your code.&lt;/p&gt;&lt;p&gt;Can you please re-post the code so that it will work with my data sources below:&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.csau.org.au/data-source.jpg" title="Data Source" alt="Data Source" width="262" align="left" height="396" /&gt; The Repeating table group is called &amp;quot;Group 7&amp;quot;, and the field in question is &amp;quot;TechnicianComments&amp;quot;.&lt;/p&gt;&lt;p&gt;Thanks in advance. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Insert Blank Rows to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/43624.aspx</link><pubDate>Tue, 30 Jun 2009 16:06:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43624</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43624.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=43624</wfw:commentRss><description>&lt;p&gt;Hi -- here&amp;#39;s C# for 2007:&lt;/p&gt;
&lt;blockquote&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;public&lt;/font&gt; &lt;font color="#0000ff"&gt;void&lt;/font&gt; FormEvents_Loading(&lt;font color="#0000ff"&gt;object&lt;/font&gt; sender, &lt;font color="#2b91af"&gt;LoadingEventArgs&lt;/font&gt; e)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#008000"&gt;//get your repeating group. The XPath in quotes needs to change according to your form&amp;#39;s data structure&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#008000"&gt;//you want to add a new row only if there is no completely blank row available, so we will filter our XPath to only select a group where all the fields are blank&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#008000"&gt;//my group only has two fields. Yours may be different. You&amp;#39;ll need to change the bit in the square brackets to address your data structure&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#2b91af"&gt;XPathNavigator&lt;/font&gt; parent = MainDataSource.CreateNavigator().SelectSingleNode(&lt;font color="#a31515"&gt;&amp;quot;/my:myFields/my:topGroup&amp;quot;&lt;/font&gt;, NamespaceManager);&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#2b91af"&gt;XPathNavigator&lt;/font&gt; group = parent.SelectSingleNode(&lt;font color="#a31515"&gt;&amp;quot;my:repeatingGroup[my:rgField1 = &amp;#39;&amp;#39; and my:rgField2 = &amp;#39;&amp;#39;]&amp;quot;&lt;/font&gt;, NamespaceManager);&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#008000"&gt;//if our variable group is null, we have no &amp;#39;empty&amp;#39; rows in our form and need to add one&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff"&gt;if&lt;/font&gt; (&lt;font color="#0000ff"&gt;null&lt;/font&gt; == group)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#008000"&gt;//get our repeating group from sampledata.xml&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#2b91af"&gt;XmlDocument&lt;/font&gt; sample = &lt;font color="#0000ff"&gt;new&lt;/font&gt; &lt;font color="#2b91af"&gt;XmlDocument&lt;/font&gt;();&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sample.Load(&lt;font color="#0000ff"&gt;this&lt;/font&gt;.Template.OpenFileFromPackage(&lt;font color="#a31515"&gt;&amp;quot;sampledata.xml&amp;quot;&lt;/font&gt;));&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#2b91af"&gt;XPathNavigator&lt;/font&gt; newGroup = sample.CreateNavigator().SelectSingleNode(&lt;font color="#a31515"&gt;&amp;quot;/my:myFields/my:topGroup/my:repeatingGroup&amp;quot;&lt;/font&gt;, NamespaceManager);&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parent.AppendChild(newGroup);&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:normal;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:0pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="LINE-HEIGHT:115%;MARGIN-TOP:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;MARGIN-BOTTOM:10pt;FONT-SIZE:11pt;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Insert Blank Rows to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/43596.aspx</link><pubDate>Tue, 30 Jun 2009 03:07:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43596</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43596.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=43596</wfw:commentRss><description>&lt;p&gt;It does seem like it would be pretty simple, but I just don&amp;#39;t know of a way.&lt;/p&gt;</description></item><item><title>Re: Insert Blank Rows to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/43595.aspx</link><pubDate>Tue, 30 Jun 2009 03:00:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43595</guid><dc:creator>MarsdeNation</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43595.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=43595</wfw:commentRss><description>&lt;p&gt;Thanks for the idea,&lt;/p&gt;&lt;p&gt;I tried it and I lost the use of the ()username function, plus when I tried to open open Visual Studio Tools for Applications it made me change back to version 2007 anyway ...&lt;/p&gt;&lt;p&gt;It seems I need version 2007 compatible code. &lt;/p&gt;&lt;p&gt;Is there not an easier way to do this?&amp;nbsp; It seems allot of trouble just to add another row to a repeating table :(&lt;/p&gt;&lt;p&gt;Thanks. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Insert Blank Rows to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/43594.aspx</link><pubDate>Tue, 30 Jun 2009 02:44:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43594</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43594.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=43594</wfw:commentRss><description>&lt;p&gt;Mars, this is just a guess, but you can browser-enable a 2007-based form that is saves as a 2003 file.&amp;nbsp; You can&amp;#39;t do this from 2003, but you can do it from 2007.&amp;nbsp; Maybe try doing a Save As on your template and choose the InfoPath 2003 format.&amp;nbsp; Then, go back into the Programming settings to see if that 2003 option is there.&lt;/p&gt;</description></item><item><title>Re: Insert Blank Rows to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/43590.aspx</link><pubDate>Tue, 30 Jun 2009 01:50:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43590</guid><dc:creator>MarsdeNation</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43590.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=43590</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Hilary,&lt;/p&gt;&lt;p&gt;&lt;b&gt;Thanks for the clarification.&lt;/b&gt;&amp;nbsp; My Form is browser-enabled, and when I go to &lt;strong&gt;Tools / Form Options / Programming&lt;/strong&gt; only get 2 options in the drop down box, C# and Visual Basic.&lt;/p&gt;&lt;p&gt;I also get a message saying &amp;quot;Script and depreciated object models are not supported in browser-enabled form templates&amp;quot;.&lt;/p&gt;&lt;p&gt;I am assuming that I cannot use this C# for 2003 code sample provided above because my form template is browser-enabled?&amp;nbsp; &lt;i&gt;&lt;u&gt;&lt;b&gt;DAMN!&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;Does anyonme have any other suggestions that would help me please?&lt;/p&gt;&lt;p&gt;Thanks in advance. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Insert Blank Rows to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/43586.aspx</link><pubDate>Mon, 29 Jun 2009 23:11:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43586</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43586.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=43586</wfw:commentRss><description>&lt;p&gt;You have been provided with an InfoPath 2003 object model code sample. Your form is set to use InfoPath 2007. Under &lt;strong&gt;Tools / Form Options / Programming&lt;/strong&gt; you can change your programming language. Since this sample is C# for 2003, you can select that from the drop down for the language.&lt;/p&gt;</description></item><item><title>Re: Insert Blank Rows to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/43584.aspx</link><pubDate>Mon, 29 Jun 2009 23:07:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43584</guid><dc:creator>MarsdeNation</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43584.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=43584</wfw:commentRss><description>&lt;p&gt;I have inserted your code, and I get several errors that I do not understand.&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.csau.org.au/code.jpg" title="Code" alt="Code" align="left" width="1262" height="949" /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Am I even close?&amp;nbsp; I am really out of my depth here.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks in advance. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Insert Blank Rows to Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/43583.aspx</link><pubDate>Mon, 29 Jun 2009 22:55:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43583</guid><dc:creator>MarsdeNation</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43583.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=43583</wfw:commentRss><description>&lt;p&gt;Thanks for your help so far swathip, I think I am getting out of my depth here.&lt;/p&gt;&lt;p&gt;I read the link you sent, and it outlines how to add a row to a repeating table by clicking a button, but I want it to happen when the form loads. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have installed Microsoft Visual Studio Tools for Applications and I can access that if I go to the Tools/Programing/Loading Event ... Menu item, and the VSTA loads and my eyes glaze over and I am lost.&lt;/p&gt;&lt;p&gt;Am I close and on the right track? &lt;/p&gt;&lt;p&gt;The code that appears when VSTA loads is below:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;using Microsoft.Office.InfoPath;&lt;br /&gt;using System;&lt;br /&gt;using System.Xml;&lt;br /&gt;using System.Xml.XPath;&lt;br /&gt;&lt;br /&gt;namespace IT_Job_Requests_2_1_Change_to_C_&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public partial class FormCode&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Member variables are not supported in browser-enabled forms.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Instead, write and read these values from the FormState&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // dictionary using code such as the following:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // private object _memberVariable&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return FormState[&amp;quot;_memberVariable&amp;quot;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FormState[&amp;quot;_memberVariable&amp;quot;] = value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // NOTE: The following procedure is required by Microsoft Office InfoPath.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // It can be modified using Microsoft Office InfoPath.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void InternalStartup()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EventManager.FormEvents.Loading += new LoadingEventHandler(FormEvents_Loading);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void FormEvents_Loading(object sender, LoadingEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Write your code here.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;/b&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am assumeing I should try and insert&amp;nbsp; the code you wrote at ther bottom where the comment says &amp;quot;Write your code here&amp;quot; ...&lt;/p&gt;&lt;p&gt;Fingers crossed ... &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>