How read fields in a repeating table which is inside another repeating table - InfoPath Dev
in

InfoPath Dev

How read fields in a repeating table which is inside another repeating table

Last post 07-15-2010 08:31 PM by Moe.Vafaei. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-07-2010 01:14 PM

    How read fields in a repeating table which is inside another repeating table

    I've a repeating table inside another repeating table. I can loop through the outer repeating table and read the fields, but having dificulty to loop through the inner repeating table.

    Very much appreciate your help. 

    myFields
      group1
        group2
           field1
           field2
           group3
             group4
                field3
                field4 

     Dim nav1 As XPathNavigator = MainDataSource.CreateNavigator()

    Dim itr1 As XPathNodeIterator = nav1.Select("/my:myFields/my:group1/my:group2", NamespaceManager)

    While itr1.MoveNext()

       temp = itr1.Current.SelectSingleNode("my:field1", NamespaceManager).Value  <== This works fine

      ?? How can I loop through gorup4 here and read the fields ??

    Next

     

  • 07-12-2010 07:25 AM In reply to

    Re: How read fields in a repeating table which is inside another repeating table

    Dim itr2 As XPathNodeIterator = itr1.Current.Select("my:group3/my:group4", NamespaceManager)

    While itr2.MoveNext()

     ' do stuff

    Next

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 07-15-2010 08:31 PM In reply to

    Re: How read fields in a repeating table which is inside another repeating table

    Yes it worked. Thank you so much for the help.

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