Repeating Table - InfoPath Dev
in

InfoPath Dev

Repeating Table

Last post 10-31-2005 04:59 AM by semionkr. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 10-30-2005 12:45 AM

    Repeating Table

    I want to go to each field in tha table in the code.
    How to get Count of rows and columns?
    How I do it?
    If somebody have example of code, I'll be glad to get it.

    Regards.
  • 10-30-2005 09:49 AM In reply to

    Hi,

    You can loop through your repeating section (group2) using scripting (JScript):

    var nodeList = XDocument.DOM.selectNodes("//my:group1/my:group2");
    if (nodeList.length>0)
    {
    for (var i=0;i<nodeList.length;i++)
    {
    var node = nodeList.selectSingleNode("my:field1");
    XDocument.UI.Alert(node.text);
    }
    }

    Here field1 is one of your fields (1 column). You know what your colums are to start with because you added them at design time. Your only unknown is the number of rows (added at runtime by your user).

    Hope that it helps.

    Regards,

    Franck Dauché
  • 10-31-2005 04:59 AM In reply to

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