<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Locate the current row in a repeating table and update the fields through button click.</title><link>https://www.infopathdev.com:443/forums/thread/86011.aspx</link><pubDate>Mon, 14 Jan 2013 15:15:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86011</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86011.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=86011</wfw:commentRss><description>To set values in rows right&amp;nbsp;at the time a row is added, you can place the rules on the repeating group itself.&amp;nbsp; Is that what you are looking to do?</description></item><item><title>Re: Locate the current row in a repeating table and update the fields through button click.</title><link>https://www.infopathdev.com:443/forums/thread/86000.aspx</link><pubDate>Mon, 14 Jan 2013 03:44:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86000</guid><dc:creator>rajkumar.bathula</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86000.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=86000</wfw:commentRss><description>&lt;p&gt;Hi Jim, &lt;/p&gt;
&lt;p&gt;can we achieve last() row of a repeating table without the help of code and for a browser based form? I mean using OOB rule/actions/functions?&amp;nbsp;I want to store value of a field in repeating table&amp;#39;s newly/last added row.&lt;/p&gt;

&lt;p&gt;thank you before hand :)&lt;/p&gt;</description></item><item><title>Re: Locate the current row in a repeating table and update the fields through button click.</title><link>https://www.infopathdev.com:443/forums/thread/72770.aspx</link><pubDate>Thu, 08 Dec 2011 19:00:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72770</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72770.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=72770</wfw:commentRss><description>Paste in your code?</description></item><item><title>Re: Locate the current row in a repeating table and update the fields through button click.</title><link>https://www.infopathdev.com:443/forums/thread/72769.aspx</link><pubDate>Thu, 08 Dec 2011 18:41:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72769</guid><dc:creator>dbarker1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72769.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=72769</wfw:commentRss><description>&lt;p&gt;Yes I tried it but unfortunately it didn&amp;#39;t work.&amp;nbsp; It still grabs the value from the first row.....&lt;/p&gt;</description></item><item><title>Re: Locate the current row in a repeating table and update the fields through button click.</title><link>https://www.infopathdev.com:443/forums/thread/72765.aspx</link><pubDate>Thu, 08 Dec 2011 18:03:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72765</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72765.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=72765</wfw:commentRss><description>&lt;p&gt;If you use &amp;quot;//&amp;quot; you will get the first instance, as &amp;quot;//&amp;quot; selects nodes in the document from the current node that 	match the selection no matter where they are.&lt;/p&gt;&lt;p&gt;Did you try my:Treatment yet, as I initially suggested? If the repeating group is FinancialAllocation, I&amp;#39;d expect my:Treatment to work.&lt;/p&gt;</description></item><item><title>Re: Locate the current row in a repeating table and update the fields through button click.</title><link>https://www.infopathdev.com:443/forums/thread/72761.aspx</link><pubDate>Thu, 08 Dec 2011 17:06:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72761</guid><dc:creator>dbarker1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72761.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=72761</wfw:commentRss><description>&lt;p&gt;I tried&amp;nbsp;&amp;quot;my:FinancialAllocation/my:Treatment&amp;quot; but it&amp;nbsp;threw an error so I tried &amp;quot;//my:FinancialAllocation/my:Treatment&amp;quot; but that pulled the first rows drop down value again. &lt;/p&gt;
&lt;p&gt;Here is the full xpath to the field that resides in the repeating section that I am trying to grab:&lt;br /&gt;&lt;br /&gt;/my:myFields/my:GIGroup/my:Years/my:Lines/my:&lt;strong&gt;FinancialAllocation&lt;/strong&gt;/my:Treatment&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;FinancialAllocation&lt;/strong&gt; is the name of the repeating section.&amp;nbsp; &amp;quot;Treatment&amp;quot; is the name of the drop down with the values that I am trying to grab using the button that sits next to the drop down on the same line.&lt;/p&gt;
&lt;p&gt;Here is a screenshot to help show what it looks like.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i110.photobucket.com/albums/n91/barkingd/Random/ApplyToAllExample.jpg" alt="" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Locate the current row in a repeating table and update the fields through button click.</title><link>https://www.infopathdev.com:443/forums/thread/72757.aspx</link><pubDate>Thu, 08 Dec 2011 16:44:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72757</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72757.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=72757</wfw:commentRss><description>&lt;p&gt;You don&amp;#39;t want an absolute path. You want a relative path. Assuming your button is in FinancialAllocation - you want &amp;quot;my:Treatement&amp;quot;. If your button is in Lines, you want &amp;quot;my:FinancialAllocation/my:Treatment&amp;quot;&lt;/p&gt;</description></item><item><title>Re: Locate the current row in a repeating table and update the fields through button click.</title><link>https://www.infopathdev.com:443/forums/thread/72756.aspx</link><pubDate>Thu, 08 Dec 2011 16:41:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72756</guid><dc:creator>dbarker1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72756.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=72756</wfw:commentRss><description>&lt;p&gt;I tried switching to an absolutel path.&amp;nbsp; Even when I use the absolute path below, it still only grabs the value of the first group.row.&amp;nbsp; When I create 5 instances and click on the &amp;quot;apply to all&amp;quot; button on the 5th row, it grabs the value of the first row.&amp;nbsp; I thought &amp;quot;e&amp;quot; put you on the row the button was clicked on?&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; domNavTreatment = e.Source.CreateNavigator();&lt;br /&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; xhtmlRTFField = domNavTreatment.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/my:myFields/my:GIGroup/my:Years/my:Lines/my:FinancialAllocation/my:Treatment&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).InnerXml;&lt;br /&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;MessageBox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Show(xhtmlRTFField); &lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Locate the current row in a repeating table and update the fields through button click.</title><link>https://www.infopathdev.com:443/forums/thread/72738.aspx</link><pubDate>Thu, 08 Dec 2011 09:07:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72738</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72738.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=72738</wfw:commentRss><description>&lt;p&gt;The problem is that &lt;strong&gt;//my:Treatment&lt;/strong&gt; is an absolute XPath instead of a relative one.&lt;/p&gt;</description></item><item><title>Re: Locate the current row in a repeating table and update the fields through button click.</title><link>https://www.infopathdev.com:443/forums/thread/72725.aspx</link><pubDate>Thu, 08 Dec 2011 00:39:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72725</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72725.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=72725</wfw:commentRss><description>&lt;p&gt;Is my:Treatment inside the same repeating group as your button? If so, you want:&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font size="2"&gt; xhtmlRTFField = domNavTreatment.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;my:Treatment&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).InnerXml ;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Locate the current row in a repeating table and update the fields through button click.</title><link>https://www.infopathdev.com:443/forums/thread/72713.aspx</link><pubDate>Wed, 07 Dec 2011 19:27:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72713</guid><dc:creator>dbarker1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72713.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=72713</wfw:commentRss><description>&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;I am trying to use the e.source to get the value of a drop down field&amp;nbsp;I have in my repeating section but it only works for the 1st instance of the repeating&amp;nbsp;section&amp;nbsp;&amp;nbsp; If I click the button in the 2nd or 3rd row it always grabs the value in the first row?&amp;nbsp; Any thoughts?&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&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;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; TestButton_Clicked(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ClickedEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; domNavTreatment = e.Source.CreateNavigator();&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;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; xhtmlRTFField = domNavTreatment.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;//my:Treatment&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).InnerXml ;&lt;/p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;MessageBox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Show(xhtmlRTFField);&amp;nbsp; // this shows the value of the row as long as its the first???&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Locate the current row in a repeating table and update the fields through button click.</title><link>https://www.infopathdev.com:443/forums/thread/44885.aspx</link><pubDate>Fri, 24 Jul 2009 02:15:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44885</guid><dc:creator>kalyan@infopath</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44885.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44885</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Hi Jimmy,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thanks a lot for your help on this
issue. I used a button inside the table to attach data to hidden fields
and then removed the basic &amp;quot;insert row&amp;quot; option. Your post helped in
another issue to calculate the row count and the row numbers
accordingly.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;Kalyan.</description></item><item><title>Re: Locate the current row in a repeating table and update the fields through button click.</title><link>https://www.infopathdev.com:443/forums/thread/44761.aspx</link><pubDate>Wed, 22 Jul 2009 01:42:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44761</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44761.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44761</wfw:commentRss><description>&lt;p&gt;What you can do is store a reference to the most recently added row, which you can access later when the button is clicked:&lt;/p&gt;
&lt;blockquote&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; lastChanged;&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;int&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; lastRowCount;&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&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;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; group2_Changed(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XmlEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (e.Site.Name.Equals(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;my:group2&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;))&lt;br /&gt;&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; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;int&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; rowCount = e.Site.Select(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;../my:group2&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Count;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (e.Operation == &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XmlOperation&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Insert)&lt;br /&gt;&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; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (rowCount &amp;gt; lastRowCount)&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; {&lt;br /&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#000000"&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; &lt;/font&gt;// my:group2 has been added&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&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; lastChanged = e.Site;&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&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; }&lt;br /&gt;&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; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;else&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;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (e.Operation == &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XmlOperation&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Delete)&lt;br /&gt;&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; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (rowCount &amp;lt; lastRowCount)&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; {&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; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// my:group2 has been removed&lt;br /&gt;&lt;font color="#000000"&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; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;lastChanged = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&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; }&lt;br /&gt;&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; lastRowCount = rowCount;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;/p&gt;&lt;/font&gt;&lt;/blockquote&gt;
&lt;p&gt;Since&amp;nbsp;removing a node could cause unpredictable behavior (e.g. if&amp;nbsp;a&amp;nbsp;row was added and then immediately deleted), I&amp;#39;ve opted to set the &lt;strong&gt;lastChanged&lt;/strong&gt;&amp;nbsp;variable to null if any row is removed, and you would need to check for this in the button&amp;#39;s event handler.&lt;/p&gt;
&lt;p&gt;Since the changed event will fire with your repeating node as &lt;strong&gt;e.Site&lt;/strong&gt; even if a node is inserted or deleted &lt;em&gt;inside&lt;/em&gt; a repeating node, you will need to keep track of the number of repeating nodes you have and check whether the count has increased or decreased.&amp;nbsp; You can initialize this row count in the Loading event of the form:&lt;/p&gt;
&lt;blockquote&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;public&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;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; FormEvents_Loading(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;LoadingEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lastRowCount = MainDataSource.CreateNavigator().Select(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/my:myFields/my:group1/my:group2&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Count;&lt;br /&gt;}&lt;/p&gt;&lt;/font&gt;&lt;/blockquote&gt;
&lt;p&gt;Of course the XPaths and node names would be different in your case.&lt;/p&gt;</description></item><item><title>Re: Locate the current row in a repeating table and update the fields through button click.</title><link>https://www.infopathdev.com:443/forums/thread/44746.aspx</link><pubDate>Tue, 21 Jul 2009 19:20:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44746</guid><dc:creator>kalyan@infopath</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44746.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44746</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have lot of code in the form, as you said it may not work.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Locate the current row in a repeating table and update the fields through button click.</title><link>https://www.infopathdev.com:443/forums/thread/44745.aspx</link><pubDate>Tue, 21 Jul 2009 19:12:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44745</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44745.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=44745</wfw:commentRss><description>&lt;p&gt;Our free &lt;a href="http://www.infopathdev.com/files/folders/qrules/entry34834.aspx"&gt;qRules toolkit&lt;/a&gt; lets you programmatically insert items into a repeating section without code. Check out the Insert command. Unfortunately, qRules doesn&amp;#39;t work if you have already have code in your form, but maybe you don&amp;#39;t need to write code and can just test with a new form and qRules to see the technique.&lt;/p&gt;</description></item></channel></rss>