<?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: Get specific field's value from a specific row in a repeating table using a button click programatically</title><link>https://www.infopathdev.com:443/forums/thread/94119.aspx</link><pubDate>Wed, 06 Nov 2013 04:48:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94119</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94119.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=94119</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello DanDeHaven,&lt;/p&gt;&lt;p&gt;I know this is an ancient post and you have long since moved on to other challenges, but in the interest of helping others that might stumble upon this thread, the issue here is that you are missing the namespace prefix (you can see them in your messagebox). This should have worked:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim mes As String = RowRec.SelectSingleNode(&amp;quot;d:Sec_x0020_Code_x0020_Num&amp;quot;, nsp).Value &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Get specific field's value from a specific row in a repeating table using a button click programatically</title><link>https://www.infopathdev.com:443/forums/thread/75017.aspx</link><pubDate>Mon, 06 Feb 2012 22:13:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75017</guid><dc:creator>DanDeHaven</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75017.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=75017</wfw:commentRss><description>&lt;p&gt;Hi Jimmy, I&amp;#39;ve tried to do what you&amp;#39;ve mentioned here as well as how you&amp;#39;ve guilded countless others through the same issue. I&amp;#39;ve probably read at least 10 different instances where you&amp;#39;ve helped others but I still can&amp;#39;t get this to work for me. Here is the scenario:&lt;/p&gt;
&lt;div style="DISPLAY:block;" class="body"&gt;
&lt;p&gt;Have&amp;nbsp;two Filler Forms that&amp;nbsp;are saved to a Form Library in SharePoint. One form is the master and the second is the details. On the master there is a repeating section (Master/Detail) that returns the detail records associated with the master. I&amp;#39;ve included a Button on the repeating table, inline with the data row. The idea is to have the button click open the detail record form. When I&amp;#39;ve hard coded the address of the detail form in the code the button has opened the detail record without issue.&lt;/p&gt;
&lt;p&gt;In order to do what I want to do the button click needs to aquire values related to the row it belongs to and feed the variables to additonal code, this works fine but only returns the 1st row detail record regardless of which row button is pressed.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve read countless articles, forum questions, blogs, and Microsoft articles but I still can&amp;#39;t get this to work.&lt;/p&gt;
&lt;p&gt;Below is the code I&amp;#39;m using, in it are the multiple lines of code that failed, they return the error &amp;quot;Object reference not set to an instance of an object&amp;quot; when I try to do what all the different articles say to do. Note that all I&amp;#39;m trying to do here is get one fields value to appear in a MessageBox, purely to prove that the button click is retrieving data from the correct row. Once i&amp;#39;ve established I&amp;#39;ve got that part working I have the rest of the code ready but didn&amp;#39;t want to include it so as not to confuse the issues.&lt;/p&gt;&lt;pre&gt;        Public Sub CTRL152_5_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)
            &amp;#39;
            &lt;strong&gt;Dim nsp As XmlNamespaceManager = Me.NamespaceManager&lt;/strong&gt;
            &lt;strong&gt;Dim RowRec As XPathNavigator = e.Source.CreateNavigator()&lt;/strong&gt;
            &amp;#39;
            &amp;#39;Dim mes As String = RowRec.OuterXml.ToString() &lt;strong&gt;*Returns values related to the correct row related to button clicked&lt;/strong&gt;
            &amp;#39;Dim mes As String = RowRec.SelectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/ns1:SharePointListItem_RW/ns1:Sec_x0020_Code_x0020_Num&amp;quot;, NamespaceManager).Value.ToString() &lt;strong&gt;*Return 1st Row data*&lt;/strong&gt;
            &amp;#39;
            &amp;#39;
            &amp;#39;Dim mes As String = RowRec.SelectSingleNode(&amp;quot;Sec_x0020_Code_x0020_Num&amp;quot;, nsp).Value &amp;#39;&lt;strong&gt;Error&lt;/strong&gt;: Object reference not set to an instance of a object
            &amp;#39;Dim mes As String = RowRec.SelectSingleNode(&amp;quot;@Sec_x0020_Code_x0020_Num&amp;quot;, nsp).Value &amp;#39;&lt;strong&gt;Error&lt;/strong&gt;: Object reference not set to an instance of a object
            &amp;#39;Dim mes As String = RowRec.SelectSingleNode(&amp;quot;../@Sec_x0020_Code_x0020_Num&amp;quot;, nsp).Value &lt;strong&gt;&amp;#39;Error&lt;/strong&gt;: Object reference not set to an instance of a object
            &amp;#39;Dim mes As String = RowRec.SelectSingleNode(&amp;quot;../../@Sec_x0020_Code_x0020_Num&amp;quot;, nsp).Value &amp;#39;&lt;strong&gt;Error&lt;/strong&gt;: Object reference not set to an instance of a object
            &amp;#39;Dim mes As String = RowRec.SelectSingleNode(&amp;quot;../../../@Sec_x0020_Code_x0020_Num&amp;quot;, nsp).Value &amp;#39;&lt;strong&gt;Error&lt;/strong&gt;: Object reference not set to an instance of a object
            &amp;#39;
            &lt;strong&gt;MessageBox.Show(mes)&lt;/strong&gt;
            &amp;#39;
        End Sub&lt;/pre&gt;
&lt;p&gt;The&amp;nbsp;strange thing is that If I use the &amp;quot;OuterXml.ToString()&amp;quot; then the code&amp;nbsp;does return the data related to the row&amp;nbsp;that&amp;nbsp;hold the button that was&amp;nbsp;pressed. Here is what is returned in the MessageBox from the OuterXML:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://social.microsoft.com/Forums/getfile/63637/" /&gt;&lt;/p&gt;
&lt;p&gt;If I use&amp;nbsp;the full XPath to any field&amp;nbsp;in the dataset, like: &lt;span style="COLOR:#008000;FONT-SIZE:x-small;"&gt;&lt;span style="COLOR:#008000;FONT-SIZE:x-small;"&gt;&lt;font size="1"&gt;/dfs:myFields/dfs:dataFields/ns1:SharePointListItem_RW/ns1:Sec_x0020_Code_x0020_Num , then only the 1st row data is returned.&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It seems like no matter how I construct the XPath for the field, if I include the &amp;quot;@&amp;quot; infront of the field name I get the error. And only if I give the full XPath without the &amp;quot;@&amp;quot; will I get anything, and in that case its the 1st row.&lt;/p&gt;&lt;/div&gt;</description></item><item><title>Re: Get specific field's value from a specific row in a repeating table using a button click programatically</title><link>https://www.infopathdev.com:443/forums/thread/72715.aspx</link><pubDate>Wed, 07 Dec 2011 20:21:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72715</guid><dc:creator>dbarker1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72715.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=72715</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Everytime I try this, it always pulls the first value.&amp;nbsp; If I have 3 instances and I click on the button on the 3rd row, the code always pulls values from the 1st row instance?&amp;nbsp; Why would this happen?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Here is the code I am using (InfoPath 2010)&lt;/p&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; ApplyAccountingTreatmentToAll_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;br /&gt;{&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; teststr = e.Source.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Treatment&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&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(teststr.Value.ToString());&lt;br /&gt;}&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Get specific field's value from a specific row in a repeating table using a button click programatically</title><link>https://www.infopathdev.com:443/forums/thread/45057.aspx</link><pubDate>Mon, 27 Jul 2009 22:05:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45057</guid><dc:creator>kalyan@infopath</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45057.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45057</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;This is working fine Jimmy, we got the solution.&lt;/p&gt;&lt;p&gt;Thanks alot for guiding me towards the solution. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Get specific field's value from a specific row in a repeating table using a button click programatically</title><link>https://www.infopathdev.com:443/forums/thread/45055.aspx</link><pubDate>Mon, 27 Jul 2009 21:39:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45055</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45055.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45055</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Ok, thank you. Which node is the repeating one in your data source?&amp;nbsp; I guess it&amp;#39;s &lt;i&gt;item&lt;/i&gt;?&amp;nbsp; If that&amp;#39;s the case, please try this:&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;/font&gt;&lt;font size="2"&gt; r = e.Source.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&lt;b&gt;field1&lt;/b&gt;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;</description></item><item><title>Re: Get specific field's value from a specific row in a repeating table using a button click programatically</title><link>https://www.infopathdev.com:443/forums/thread/45054.aspx</link><pubDate>Mon, 27 Jul 2009 21:33:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45054</guid><dc:creator>kalyan@infopath</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45054.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45054</wfw:commentRss><description>&lt;p&gt;Sorry to trouble you, &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;/font&gt;&lt;font size="2"&gt; r = e.Source.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;item/field1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;
&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;font size="2"&gt; ((r == &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;S&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;))
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;p&gt;I tried above code but it was giving me an error &amp;quot;Object reference not set to an instance of an object&amp;quot;. Then i used working with full Xpath. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;&lt;p&gt;Kalyan. &lt;br /&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Get specific field's value from a specific row in a repeating table using a button click programatically</title><link>https://www.infopathdev.com:443/forums/thread/45052.aspx</link><pubDate>Mon, 27 Jul 2009 21:18:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45052</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45052.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45052</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;So I asked you to try this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;string r = e.Source.SelectSingleNode(&amp;quot;item/field1&amp;quot;, NamespaceManager).Value;&amp;nbsp; &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;And you continued to do this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;&lt;font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;
&lt;/font&gt;&lt;font size="2"&gt; xCheck = e.Source.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:queryFields/tns:method1/structure/item/field1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);

&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; r = xCheck.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:queryFields/tns:method1/structure/item/field1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;
&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;and you simply tell me that it doesn&amp;#39;t work?&amp;nbsp; Of course it doesn&amp;#39;t work.&amp;nbsp; That&amp;#39;s why I&amp;#39;ve given you different code to use three times, but you seem to be ignoring me and just using your own code over and over.&amp;nbsp; Are you trying to waste my time? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Get specific field's value from a specific row in a repeating table using a button click programatically</title><link>https://www.infopathdev.com:443/forums/thread/45050.aspx</link><pubDate>Mon, 27 Jul 2009 21:09:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45050</guid><dc:creator>kalyan@infopath</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45050.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45050</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;
&lt;/font&gt;&lt;font size="2"&gt; xCheck = e.Source.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:queryFields/tns:method1/structure/item/field1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);

&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; r = xCheck.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:queryFields/tns:method1/structure/item/field1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;
&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;font size="2"&gt; ((r == &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;S&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;))
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;p&gt;This is the code i am using to get the field&amp;#39;s value. &lt;br /&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Get specific field's value from a specific row in a repeating table using a button click programatically</title><link>https://www.infopathdev.com:443/forums/thread/45047.aspx</link><pubDate>Mon, 27 Jul 2009 21:02:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45047</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45047.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45047</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Could you show me the code you&amp;#39;re using?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Get specific field's value from a specific row in a repeating table using a button click programatically</title><link>https://www.infopathdev.com:443/forums/thread/45042.aspx</link><pubDate>Mon, 27 Jul 2009 20:47:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45042</guid><dc:creator>kalyan@infopath</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45042.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45042</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;First row&amp;#39;s value in that field.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Get specific field's value from a specific row in a repeating table using a button click programatically</title><link>https://www.infopathdev.com:443/forums/thread/45037.aspx</link><pubDate>Mon, 27 Jul 2009 20:34:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45037</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45037.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45037</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;kalyan@infopath:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;
&lt;/font&gt;&lt;font size="2"&gt; xCheck = e.Source.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&lt;u&gt;&lt;b&gt;/dfs:myFields/dfs:queryFields/tns:method1/structure/item/field1&lt;/b&gt;&lt;/u&gt;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);

&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; r = xCheck.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&lt;u&gt;&lt;b&gt;/dfs:myFields/dfs:queryFields/tns:method1/structure/item/field1&lt;/b&gt;&lt;/u&gt;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;
&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Now you&amp;#39;re using the full path in two places.&amp;nbsp; What happens if you use&lt;/p&gt;&lt;p&gt;string r = e.Source.SelectSingleNode(&amp;quot;item/field1&amp;quot;, NamespaceManager).Value; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Get specific field's value from a specific row in a repeating table using a button click programatically</title><link>https://www.infopathdev.com:443/forums/thread/45035.aspx</link><pubDate>Mon, 27 Jul 2009 20:30:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45035</guid><dc:creator>kalyan@infopath</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45035.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45035</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;
&lt;/font&gt;&lt;font size="2"&gt; xCheck = e.Source.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:queryFields/tns:method1/structure/item/field1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);

&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; r = xCheck.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:queryFields/tns:method1/structure/item/field1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;
&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;font size="2"&gt; ((r == &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;S&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;))
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Get specific field's value from a specific row in a repeating table using a button click programatically</title><link>https://www.infopathdev.com:443/forums/thread/45034.aspx</link><pubDate>Mon, 27 Jul 2009 20:24:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45034</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45034.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45034</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I find that hard to believe.&amp;nbsp; Could you show me what the code looks like when you do that?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Get specific field's value from a specific row in a repeating table using a button click programatically</title><link>https://www.infopathdev.com:443/forums/thread/45033.aspx</link><pubDate>Mon, 27 Jul 2009 20:21:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45033</guid><dc:creator>kalyan@infopath</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45033.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45033</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I used both of them, they are returning the same value, which is from the first row.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Get specific field's value from a specific row in a repeating table using a button click programatically</title><link>https://www.infopathdev.com:443/forums/thread/45032.aspx</link><pubDate>Mon, 27 Jul 2009 20:14:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45032</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45032.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45032</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Why are you using &lt;/p&gt;&lt;p&gt;&lt;font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:queryFields/tns:method1/structure/item&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; &lt;/p&gt;&lt;p&gt;When I suggested using&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;quot;item/field1&amp;quot;&lt;/p&gt;&lt;p&gt;or&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;quot;field1&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Using an absolute path like you are will always yield the first item.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>