Reading Repeating Table Values - InfoPath Dev
in

InfoPath Dev

Reading Repeating Table Values

Last post 11-22-2005 09:46 AM by franck. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-22-2005 08:00 AM

    Reading Repeating Table Values

    I am using VB.NET and would like to write all the field values enter within a repeating table to SQL. If anyone has a quick sample loop I would greatly appr. it.

    Thanks
  • 11-22-2005 09:46 AM In reply to

    Re: Reading Repeating Table Values

    Hi,

    To loop through your repeating table, you can use (group2 is the repeating group):
    Dim oNodeList As IXMLDOMNodeList
    Dim oNode As IXMLDOMNode
    Dim oField As IXMLDOMNode
    oNodeList = thisXDocument.DOM.selectNodes("my:myFields/my:group1/my:group2")
    If (oNodeList.length > 0) Then
    For Each oNode In oNodeList
    If (oNode.nodeType = DOMNodeType.NODE_ELEMENT) Then
    oField = oNode.selectSingleNode("my:field1")
    thisXDocument.UI.Alert(oField.text)
    End If
    Next
    End If

    Regards,

    Franck Dauché
    InfoPathDev
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.