Urgent question with repeating tables - InfoPath Dev
in

InfoPath Dev

Urgent question with repeating tables

Last post 02-25-2014 05:13 AM by madrid272001. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-21-2014 06:20 AM

    Urgent question with repeating tables

    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("/dfs:myFields/dfs:dataFields/d:General/d:Gastos_Representacion/@Cliente_Representacion", NamespaceManager).Value MessageBox.Show(cliente_representacion, "El cliente de representacion es: ", 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,
  • 02-23-2014 01:32 PM In reply to

    Re: Urgent question with repeating tables

    You don'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 "xpath axis" and you should find it.

    Patrick Halstead
    Project Manager at Qdabra
  • 02-25-2014 05:13 AM In reply to

    Re: Urgent question with repeating tables

    Thanks for your help.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.