Repeating table inside repeating table [RESOLVED] - InfoPath Dev
in

InfoPath Dev

Repeating table inside repeating table [RESOLVED]

Last post 01-28-2009 06:01 PM by erickwidya. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-28-2009 01:04 AM

    Repeating table inside repeating table [RESOLVED]

    how do i loop the second repeating table to get its value?

    i've done simillar using XPathNodeIterator but it's only using 1 repeating table..

     now i confuse

     PS: my datasource will be like attachment

     

    thanks,

    erick

     


  • 01-28-2009 04:44 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Repeating table inside repeating table

    Hello,

    First you have to get the group2 node list then try to get the group4 node list from group2 node.

    Here is the code,

    XPathNodeIterator group2Nodes = this.CreateNavigator().Select("/my:myFields/my:group1/my:group2", this.NamespaceManager);

     

    foreach (XPathNavigator group2Node in group2Nodes)

    {

    XPathNodeIterator group4Nodes = group2Node.Select("my:group3/my:group4", this.NamespaceManager);

    foreach (XPathNavigator group4Node in group4Nodes)

    {

    //your code to get group4Node values.

    }

    }

  • 01-28-2009 06:01 PM In reply to

    Re: Repeating table inside repeating table

     thx shiva..

    just find out we can  use "for each"

     i'm using slightly different approach using "while (group2.movenext())"

     

    thanks again

     

     

     

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