<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Repeating Table from 2nd Data Source, every row with button, get current row</title><link>https://www.infopathdev.com:443/forums/thread/69542.aspx</link><pubDate>Tue, 23 Aug 2011 08:18:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69542</guid><dc:creator>samy08</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69542.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=69542</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Sorry, definitely my fault. Forget to post it..&lt;/p&gt;&lt;p&gt;&amp;nbsp;I use the submit/code function with C#. I just tried to select the current ID (in which row the button is). Then I can call a WebService with this information. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;With that I try to select a field called ID, which is part of the repeating table.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;BLOCKQUOTE&gt;&lt;div&gt;String x = e.Source.CreateNavigator().SelectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/dfs:RequestFL/@ID&amp;quot;, NamespaceManager).Value; &lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;However always the first occurrence of the ID field is selected. I tried about ~20 different ways.&lt;/p&gt;&lt;p&gt;&amp;nbsp;With that code I just set the selected value to a textfield to check what was selected:&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;XPathNavigator xnDoc = this.MainDataSource.CreateNavigator();&lt;/p&gt;&lt;p&gt; xnDoc.SelectSingleNode(&amp;quot;/my:myFields/my:CurrentItemID&amp;quot;, ns).SetValue(&amp;quot;The following error occurred:&amp;quot; +x+ &amp;quot;bla&amp;quot;); &lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The WebService is definitely working. I managed to call it from Infopath. Here is an error message produced by SharePoint, due to that always the first occurence of the ID is selected.&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;div class="message"&gt;&lt;span style="font-family:Tahoma;font-size:8pt;" class="left"&gt;Form 
submission failed. (User: XXXXXXXXXXXXXX, Form Name: Cancel, IP: , Request: &lt;span style="font-style:normal;"&gt;&lt;b&gt;&lt;a href="http://thesource.dev03.mandg.local/_layouts/Postback.FormServer.aspx" class="link" title="http://thesource.dev03.mandg.local/_layouts/Postback.FormServer.aspx"&gt;XXXXXXXXXXXXXXXXXXXXXX&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;, 
Form ID: 
urn:schemas-microsoft-com:office:infopath:Cancel:-myXSD-2011-08-22T09-40-32, 
Type: DataAdapterException, Exception Message: The remote server returned an 
error: (500) Internal Server Error. Server was unable to process request. 
---&amp;gt; The selected workflow &amp;#39;XXXXXXXXXXX&amp;#39; is already running on list item 
with id 76 in list &amp;#39;RequestFL&amp;#39; on site&lt;b&gt;XXXXXXXXXXXXXXXXXXXXX&lt;/b&gt;&lt;span style="font-style:normal;"&gt;&lt;b&gt;&lt;a href="http://thesource.dev03.mandg.local/DepartmentInABox" class="link" title="http://thesource.dev03.mandg.local/DepartmentInABox"&gt;&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;. 
The remote server returned an error: (500) Internal Server Error.)&amp;nbsp;&lt;/span&gt;&lt;span class="system"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="message"&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp; &lt;br /&gt;&lt;/div&gt;&lt;p&gt;I apologize for not posting this essential information in my first post.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Repeating Table from 2nd Data Source, every row with button, get current row</title><link>https://www.infopathdev.com:443/forums/thread/69518.aspx</link><pubDate>Mon, 22 Aug 2011 18:00:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69518</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69518.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=69518</wfw:commentRss><description>&lt;p&gt;What&amp;#39;s the rule on your button? Select the edit XPath checkbox in the formula editor before pasting it in, so we can see the full XPath....&lt;/p&gt;</description></item><item><title>Repeating Table from 2nd Data Source, every row with button, get current row</title><link>https://www.infopathdev.com:443/forums/thread/69513.aspx</link><pubDate>Mon, 22 Aug 2011 16:03:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69513</guid><dc:creator>samy08</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69513.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=69513</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have googled now for hours and can&amp;#39;t get this easy thing working.&lt;/p&gt;
&lt;p&gt;Basically I have SharePoint List and I want to kick-off a WorkFlow for a specific Item from InfoPath. This would be done via a WebService. I can call this WebService from Infopath (Data Connection), but it always uses the first Item-ID found. So I need to get the ItemID of the button clicked. (I added a button into the repeating table). But if I click the button it still just gets the Item-ID from the first row.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Here is a screen of the Form:&lt;/p&gt;
&lt;p&gt;&lt;img style="CURSOR:pointer;" id="fullimg" title="click to unzoom" src="http://img594.imageshack.us/img594/8661/testzb.png" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Would really appreciate any help!&lt;/p&gt;</description></item></channel></rss>