How to get Repeating table value by code? - InfoPath Dev
in

InfoPath Dev

How to get Repeating table value by code?

Last post 07-25-2007 07:26 AM by erinselena. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-25-2007 04:25 AM

    How to get Repeating table value by code?

    My InfoPath form contain a Repeating table and button. I want on the Click 
    event to read (in loop) all the Repeating table rows and values in each row.
    
    How to do it in Javascript? 
  • 07-25-2007 07:26 AM In reply to

    Re: How to get Repeating table value by code?

    hello,

    I don't know Javascript but i can tell you how i've done that.

    Once the event is fired, all you would have to do is through XPath get a collection of the nodes and then iterate through them.

    in C# (and infopath 2007)

    XpathNavigator navigator = CreatNavigator().Select("XpathToNodes",namespace);

    while(navigator.movenext())

    {

            Console.WriteLine(navigator.current.innerxml);

    }

    Hope this helps.

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