copying Repeating Table - InfoPath Dev
in

InfoPath Dev

copying Repeating Table

Last post 07-09-2013 04:12 AM by jnava121. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-14-2013 09:05 AM

    • Ravik
    • Top 500 Contributor
      Male
    • Joined on 01-25-2013
    • Aberdeen(Scotland)
    • Posts 33

    copying Repeating Table

    what i am trying to do here is copy a repeating table using InsertBefore method. The problem i am having is when i click on the copy button for the first time, copying seems to work fine which by creating a new table(2) beneath the current one(1) with the fields that i require . The problem happens when i click copy button again from first table, a new repeating table gets created before the 1st repeating table. not sure what is causing this to happen. Any help would be greatly appreciated.. Many Thanks Please see the attached code for reference.
  • 07-09-2013 04:12 AM In reply to

    Re: copying Repeating Table

     I think when you add repeating table nodes programmatically you have to delete the first empty item on the new table (after you add the nodes).

    XPathNavigator itemNav=domNav.SelectSingleNode("myfields/my:RepeatingField[1]",NamespaceManger)
    if(itemNav!=null)
    {
    itemNav.DeleteSelf();
    }

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