Iterate Cols in Repeating Tables - InfoPath Dev
in

InfoPath Dev

Iterate Cols in Repeating Tables

Last post 06-04-2007 01:13 AM by Matt Faus. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-03-2007 03:48 PM

    Iterate Cols in Repeating Tables

    Hi guys ,

     I'm new to infopath , and i was wondering if there is any way to iterate columns in a Repeating Row .

    Usualy to access a column we use thisXDocument.DOM.selectSingleNode(''//RepeatingTable[Num Row]/MyCell'').text . But i want to create one function that receives my table as a parameter and reads all fields in the table .

    Is this possible ?

     Thanks

  • 06-04-2007 01:13 AM In reply to

    Re: Iterate Cols in Repeating Tables

    Hi brunoperes and welcome to the forum!

    You can do this if you just a more generaly XPath function. The following XPath will return a list of nodes, which will correspond to the "columns" of the table you have created.

    "//RepeatingTable[NumRow]/child::node()"

    REF: http://www.w3schools.com/xpath/xpath_axes.asp (I use these pages ALL the time!)

    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.