<?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: Populate repeating table row</title><link>https://www.infopathdev.com:443/forums/thread/72933.aspx</link><pubDate>Wed, 14 Dec 2011 15:36:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72933</guid><dc:creator>jaxkookie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72933.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=72933</wfw:commentRss><description>&lt;p&gt;I got it! I was over complicating it. I scrapped half the code and restarted. I have one button the will add to the repeating table first row, or append additional rows. Then I added a button to the table row. Onclick I run rules to update my master with current() row data, and delete the current &amp;nbsp;row. works perfectly in client and browser.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks again&lt;/p&gt;</description></item><item><title>Re: Populate repeating table row</title><link>https://www.infopathdev.com:443/forums/thread/72870.aspx</link><pubDate>Tue, 13 Dec 2011 16:56:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72870</guid><dc:creator>jaxkookie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72870.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=72870</wfw:commentRss><description>&lt;p&gt;Thanks Hilary. I was finaly able to return a solution. I am incrementing a field with each button click. So on that field&amp;nbsp;change event I am removing the first&amp;nbsp;row, Using a rule to hide the first&amp;nbsp;row by default. So now I am trying to add a button to each row that will allow me to copy the data in that row and write it back to my Master fields. Seems I keep getting an error because of&amp;quot;nil&amp;quot;.&lt;/p&gt;&lt;pre&gt;public void AddData_Clicked(object sender, ClickedEventArgs e)
        {

            XPathNavigator Master1 = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:Master1&amp;quot;, NamespaceManager);
            XPathNavigator Master2 = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:Master2&amp;quot;, NamespaceManager);
            XPathNavigator Master3 = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:Master3&amp;quot;, NamespaceManager);
            //XPathNavigator index = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:index&amp;quot;, NamespaceManager);
           
                    XPathNavigator navigator = MainDataSource.CreateNavigator();
                    navigator.MoveToFollowing(XPathNodeType.Element);

                    XPathNavigator sectionNode = navigator.SelectSingleNode(&amp;quot;/my:myFields/my:Chld&amp;quot;, NamespaceManager);

                    string ns = sectionNode.NamespaceURI;

                    XmlWriter writer = sectionNode.AppendChild();
                    writer.WriteStartElement(&amp;quot;my&amp;quot;, &amp;quot;Child&amp;quot;, ns);
                    writer.WriteElementString(&amp;quot;my&amp;quot;, &amp;quot;Child1&amp;quot;, ns, Master1.Value.ToString()); 
                    writer.WriteElementString(&amp;quot;my&amp;quot;, &amp;quot;Child2&amp;quot;, ns, Master2.Value.ToString());
                    writer.WriteElementString(&amp;quot;my&amp;quot;, &amp;quot;Child3&amp;quot;, ns, Master3.Value.ToString());
                    writer.WriteElementString(&amp;quot;my&amp;quot;, &amp;quot;ChildIndex&amp;quot;, ns, F8.Value.ToString());
                    writer.WriteEndElement();

                    //writer.Flush();
                    writer.Close();
             
        }

        public void index_Changed(object sender, XmlEventArgs e)
        {
            XPathNavigator CI = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:Chld/my:Child/my:ChildIndex&amp;quot;, NamespaceManager);
            XPathNavigator CIParent = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:Chld/my:Child&amp;quot;, NamespaceManager);
                 
            if (Convert.ToInt32(CI.Value) == 0)
            {
                CIParent.DeleteSelf();
                
            }

        }

        public void EditItem_Clicked(object sender, ClickedEventArgs e)
        {
           
            //XPathNavigator nodeToClone = e.Source;
            //nodeToClone.Clone().InsertAfter(e.Source);
            XPathNavigator Master1 = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:Master1&amp;quot;, NamespaceManager);
            XPathNavigator Master2 = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:Master2&amp;quot;, NamespaceManager);
            XPathNavigator Master3 = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:Master3&amp;quot;, NamespaceManager);
            XPathNavigator Child1 = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:Child1&amp;quot;, NamespaceManager);
            XPathNavigator Child2 = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:Child2&amp;quot;, NamespaceManager);
            XPathNavigator Child3 = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:Child3&amp;quot;, NamespaceManager);

            Master1.SetValue(Child1.Value);
            Master2.SetValue(Child2.Value);
            Master3.SetValue(Child3.Value);
       
        }&lt;/pre&gt;seems my Child values are null. Is there a way to copy fields in a selected row and set the values to non-repeating fields?</description></item><item><title>Re: Populate repeating table row</title><link>https://www.infopathdev.com:443/forums/thread/72867.aspx</link><pubDate>Tue, 13 Dec 2011 16:00:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72867</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72867.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=72867</wfw:commentRss><description>You could not include the row by default. Tools / Default Values from IP 2007 - the Data tab on the ribbon in IP 2010. Just deselect the checkbox, and the row won&amp;#39;t be included. Of course, it appears in your code you are creating a variable that uses the XPath to that node (although it doesn&amp;#39;t seem to be used?) - if you don&amp;#39;t include the node by default when the form is created, that Child variable will be null.</description></item><item><title>Re: Populate repeating table row</title><link>https://www.infopathdev.com:443/forums/thread/72857.aspx</link><pubDate>Tue, 13 Dec 2011 13:37:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72857</guid><dc:creator>jaxkookie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72857.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=72857</wfw:commentRss><description>&lt;p&gt;I have come up with some what of a working solution. The problem now is my first row remains blank. here is what I have:&lt;/p&gt;
&lt;p&gt;my form structure:&lt;/p&gt;&lt;pre&gt;myFields
 Master1
 Master2
 Master3
 Chld
   Child
      Child1
      Child2
      Child3
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Master1 will set Child1 and so on.&lt;/p&gt;
&lt;p&gt;This is the button code:&lt;/p&gt;&lt;code&gt;&lt;pre&gt;public void AddData_Clicked(object sender, ClickedEventArgs e)
        {
            XPathNavigator Master1 = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:Master1&amp;quot;, NamespaceManager);
            XPathNavigator Master2 = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:Master2&amp;quot;, NamespaceManager);
            XPathNavigator Master3 = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:Master3&amp;quot;, NamespaceManager);
            XPathNavigator Child = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:Chld/my:Child&amp;quot;, NamespaceManager);
            
            XPathNavigator navigator = MainDataSource.CreateNavigator();
            navigator.MoveToFollowing(XPathNodeType.Element);

            XPathNavigator sectionNode = navigator.SelectSingleNode(&amp;quot;/my:myFields/my:Chld&amp;quot;, NamespaceManager);

            string ns = sectionNode.NamespaceURI;

            XmlWriter writer = sectionNode.AppendChild();
            DeleteNil(Child);
            writer.WriteStartElement(&amp;quot;my&amp;quot;, &amp;quot;Child&amp;quot;, ns);
            writer.WriteElementString(&amp;quot;my&amp;quot;, &amp;quot;Child1&amp;quot;, ns, Master1.Value.ToString()); 
            writer.WriteElementString(&amp;quot;my&amp;quot;, &amp;quot;Child2&amp;quot;, ns, Master2.Value.ToString());
            writer.WriteElementString(&amp;quot;my&amp;quot;, &amp;quot;Child3&amp;quot;, ns, Master3.Value.ToString());
            writer.WriteEndElement();

            writer.Close();         
         }&lt;/pre&gt;&lt;/code&gt;
&lt;p&gt;how can I get the code to write to the first row or eliminate the first row completely?&lt;/p&gt;</description></item><item><title>Populate repeating table row</title><link>https://www.infopathdev.com:443/forums/thread/72848.aspx</link><pubDate>Tue, 13 Dec 2011 00:04:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72848</guid><dc:creator>jaxkookie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72848.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=72848</wfw:commentRss><description>&lt;p&gt;I am looking for a way with a button click event to copy data from several fields to a new row in a repeating table row. I was hopping I did not have to identify every source field and every target field. For now, testing, I have 3 text fields. once I add values to these fields I want to cluck a button, copy these valuse and add it to a repeating table.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can this be done? any help appreciated.&lt;/p&gt;</description></item></channel></rss>