nested repeating tables, get value from parent? - InfoPath Dev
in

InfoPath Dev

nested repeating tables, get value from parent?

Last post 07-21-2010 06:04 AM by ehaze. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-20-2010 01:22 PM

    • ehaze
    • Top 500 Contributor
    • Joined on 12-11-2007
    • Posts 49

    nested repeating tables, get value from parent?

    sorta stuck on this one.

    i have repeating table with two columns.

    column1 has a text box called r1_txt1

    column2 has another repeating table in it.

    the second repeating table has button and a single text box called r2_txt2

    how would i reference the text box in the in the first repeating table from within the second repeating table?

     

            Public Sub btn1_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)
                Dim nav As XPathNavigator = e.Source.CreateNavigator
                Dim sOne As XPathNavigator = nav.SelectSingleNode("my:r1_txt1", Me.NamespaceManager)
                Dim sTwo As XPathNavigator = nav.SelectSingleNode("my:r2_txt2", Me.NamespaceManager)

                sTwo.SetValue(sOne.ToString)

            End Sub

     

     

     

     

     

  • 07-20-2010 09:00 PM In reply to

    Re: nested repeating tables, get value from parent?

    Most likely you need some combination of ../ in your path to my:r1_txt1, like "../my:r1_txt1", but is there any reason you can't accomplish this with a rule rather than code?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 07-21-2010 06:04 AM In reply to

    • ehaze
    • Top 500 Contributor
    • Joined on 12-11-2007
    • Posts 49

    Re: nested repeating tables, get value from parent?

     figured it out.

    just needed to drop a text box in the child table and set the default value equal to the field in the parent table.

    i was stuck in a coding groove!

     

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