Read elements value from repeating section - InfoPath Dev
in

InfoPath Dev

Read elements value from repeating section

Last post 06-04-2007 09:52 AM by Greg Collins. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-04-2007 03:32 AM

    • Raoul
    • Top 500 Contributor
    • Joined on 05-05-2006
    • Posts 32

    Read elements value from repeating section

    I have a repeating section like this:

     repeating section

          name

          subname

          button

     I need to capture, on button onclick event, name and subname corresponding value .

    Can you help me? Thanks in advance.

  • 06-04-2007 09:52 AM In reply to

    Re: Read elements value from repeating section

    In the button click handler you have an event object parameter. This is where you want to look. For managed code it is named "e" for script it is named "eventObj". The "Source" property is the specifc row node that the button is on.

    So if you want to get the name field value of the row the button was clicked on, you would do (IP03 C#): string sName = e.selectSingleNode("name").text

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