Reference nodes in most recent repeating section - InfoPath Dev
in

InfoPath Dev

Reference nodes in most recent repeating section

Last post 01-18-2006 04:34 AM by sjc724. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-17-2006 09:05 AM

    Reference nodes in most recent repeating section

    I have a repeating section that has several text boxes in it. When the user inserts a new section I would like to set the text box control values programmatically.

    My question is, how do I reference the nodes in the most recently added section? I am doing the following but I keep changing the values in the repeating section just before the newly inserted one (this code is executed when a button is clicked, I don't want to set the values during the OnAfterChange event):

    thisXDocument.DOM.selectSingleNode("//dfs:dataFields//s0:GetCaseDataResponse//" +
    "s0:GetCaseDataResult//s0:Participants//s0:ParticipantBO//" +
    "s0:firstName[last()]").text = "some dynamic text";

    Thanks for any help you can offer!
  • 01-17-2006 06:37 PM In reply to

    Re: Reference nodes in most recent repeating section

    Check out this thread:http://infopathdev.com/forums/topic.asp?TOPIC_ID=1569

    Also, this has been discussed many times before on this very forum. There is a search link in the upper right corner of the screen that might bring even more insight.

    ---------------
    Matt Faus
    InfoPath Dev Texas
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 01-18-2006 04:34 AM In reply to

    Re: Reference nodes in most recent repeating section

    Thank you!

    I actually did search through the threads, but it seems the solutions tend to revolve around the OnAfterChange event which I am not using.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.