<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Accessing individual rows of a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/35013.aspx</link><pubDate>Fri, 28 Nov 2008 05:48:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35013</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35013.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35013</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Here in your code every time you are taking the first row AppcontactId. Instead of that get the contact id of the present row. For that use the following code line.&lt;/p&gt;
&lt;p&gt;var AppContactID = eventObj.source.selectSingleNode(&amp;quot;@AppContactID&amp;quot;).text;&lt;/p&gt;
&lt;p&gt;Hope this will solve your problem.&lt;/p&gt;</description></item><item><title>Accessing individual rows of a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/35000.aspx</link><pubDate>Thu, 27 Nov 2008 21:48:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35000</guid><dc:creator>AliMalek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35000.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35000</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I have a repeating table consisting of two columns (contact name and contact type). I would like to be able to&amp;nbsp;update and delete individual rows of this table. Therefore, I added two buttons per row for Save and Delete and use the below code to delete, for example. The problem is that AppContactID always receives value from the first row. so, whenever I delete second or third row, it always tries to delete first row. What am I doing wrong here?&lt;/p&gt;
&lt;p&gt;function btnContactDelete::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;if (XDocument.UI.Confirm(&amp;quot;Are you sure?&amp;quot;,4)==6)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;var AppContactID = XDocument.DOM.selectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:SQLComplexDB/d:AppContact/@AppContactID&amp;quot;).text; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;if(AppContactID != null)&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;XDocument.QueryAdapter.Command = &amp;quot;delete dbo.AppContact where AppContactID =&amp;nbsp; &amp;quot; + AppContactID; &lt;br /&gt;&amp;nbsp;&amp;nbsp;XDocument.Query();&lt;br /&gt;&amp;nbsp;&amp;nbsp;RefreshItemQuery();&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>