Repeating Table Clone Row - InfoPath Dev
in

InfoPath Dev

Repeating Table Clone Row

Last post 02-22-2007 05:02 AM by edove. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-22-2007 02:07 AM

    • edove
    • Top 500 Contributor
    • Joined on 08-21-2006
    • Posts 50

    Repeating Table Clone Row

    Hi all,

    Can anyone help me with the code for cloning a row in a repeating table.

    I know that I can clone the first row and append it to the bottom of the table but what I actually need to do is select the row I want to clone and then append the new row underneath the one selected..
  • 02-22-2007 04:30 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Repeating Table Clone Row

    Hi Edove,

    //Get the node
    IXMLDOMNode node = thisXDocument.DOM.selectSingleNode("Xpath of your repeating node");
    //Clone node
    IXMLDOMNode cloneNode = node.cloneNode(true);
    //Append the clone node to repeating node
    node .appendChild(cloneNode);

    Note: Above code in C#
  • 02-22-2007 05:02 AM In reply to

    • edove
    • Top 500 Contributor
    • Joined on 08-21-2006
    • Posts 50

    Re: Repeating Table Clone Row

    Thanks Shiva,

    I'm actually using JScript, sorry I meant to say but I shall try and translate!
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.