Insert Duplicate Row in Repeating Table - InfoPath Dev
in

InfoPath Dev

Insert Duplicate Row in Repeating Table

Last post 07-31-2010 05:25 AM by Potemkine. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-28-2010 12:28 PM

    Insert Duplicate Row in Repeating Table

    Hello Everyone, I'm wondering if its possible to insert a duplicate row in my repeating table. I found a solution to insert a new blank row using a button with this code:

    XDocument.View.ExecuteAction "xCollection::insert", "PayHistory_47"

    PayHistory_47 is the xmlToEdit name of my repeating table. 

    But I would really want to use a check box instead of a command button. One of the columns in my repeating table is "FullPartialOP" and when user checks this box, it should insert a new 'duplicate' row of the current row.  Is this possible?  I found another solution here: http://www.infopathdev.com/forums/p/9514/33651.aspx but i'm so confused how to use the other example written in vbscript.

    Im using Infopath 2003 sp1 and vbscript.

    Any help/guidance is greatly appreciated.

    Thank you all

  • 07-31-2010 05:25 AM In reply to

    Re: Insert Duplicate Row in Repeating Table

     Hi, I usually program on C# 2003/2007, but I don't know exactly the code in VB script.

    You can make a reference of your repeating row. After that you make a clone of this node and you insert it in your repeating table.

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