<?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: Urgent question with repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/96104.aspx</link><pubDate>Tue, 25 Feb 2014 13:13:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96104</guid><dc:creator>madrid272001</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96104.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=96104</wfw:commentRss><description>Thanks for your help.</description></item><item><title>Re: Urgent question with repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/96081.aspx</link><pubDate>Sun, 23 Feb 2014 21:32:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96081</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96081.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=96081</wfw:commentRss><description>&lt;p&gt;You don&amp;#39;t need code for this. Just use the current() operator to get the B field from the current row. Greg columns has a blog post on xpath axis - search the blogs above for &amp;quot;xpath axis&amp;quot; and you should find it.&lt;/p&gt;</description></item><item><title>Urgent question with repeating tables</title><link>https://www.infopathdev.com:443/forums/thread/96066.aspx</link><pubDate>Fri, 21 Feb 2014 14:20:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96066</guid><dc:creator>madrid272001</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96066.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=96066</wfw:commentRss><description>Hi all,

Hope you can give me a hand. I think I am going crazy.

I have a repeating table with 3 fields: A, B and C. What I want is when I write a value on field C, the text of the field B (previosly filled) is shown and saved on a variable.

With the first row is ok, but when I add a new row, the value shown is the one in the field B but from the first row, not for the current one.

I have the next code:

            Dim nav As XPathNavigator = MainDataSource.CreateNavigator()

            Dim cliente_representacion As String

            

            cliente_representacion = nav.SelectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:General/d:Gastos_Representacion/@Cliente_Representacion&amp;quot;, NamespaceManager).Value
            MessageBox.Show(cliente_representacion, &amp;quot;El cliente de representacion es: &amp;quot;, MessageBoxButtons.YesNo)


I thought infopath was considering the rows you were on that moment, but it seems not.

How can I do that?.

Thanks and best regards,</description></item></channel></rss>