iterate over repeating table problem - InfoPath Dev
in

InfoPath Dev

iterate over repeating table problem

Last post 09-12-2007 12:42 AM by donovanhill. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 09-12-2007 12:42 AM

    iterate over repeating table problem

    Hi,

    I am having problems with extracting values from a repeating table within an Infopath 2007 form, the following code will extract all node values, rather than just the repeating table, I only need

    the table values, not the entire form. The table node name is group2, which I have selected, but for some reason it just ignores this, would anyone know where I am going wrong? any help would be greatly appreciated.

     

    Dim navigator As XPathNavigator = CreateNavigator()

    Dim nodes As XPathNodeIterator =
    navigator.Select("/my:myFields/my:group2", NamespaceManager)
    Dim nodesNavigator As XPathNavigator = nodes.Current

    Dim nodestext As XPathNodeIterator =
    nodesNavigator.SelectDescendants(XPathNodeType.Text, False)

    While nodestext.MoveNext()

    MessageBox.Show(nodestext.Current.Value)

    End While

     

    Thanks.  Kevin.

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