Insert a New Row - InfoPath Dev
in

InfoPath Dev

Insert a New Row

Last post 07-18-2008 11:58 PM by Shiva. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-20-2008 01:40 AM

    • Mickey B
    • Not Ranked
      Male
    • Joined on 10-10-2007
    • Northern Ireland
    • Posts 7

    Insert a New Row

    I am trying to insert a new row into a repeating table when I select a radio button.

    I understand that this can be done through the JScript behind the radio button but i am not sure what the code is?

    Any help would be appreciated.

    Mick

  • 07-14-2008 04:02 AM In reply to

     

    hi, I hope this link will help you. http://www.infopathdev.com/forums/p/3312/13317.aspx http://www.eggheadcafe.com/software/aspnet/29437926/insert-new-row-in-a-repea.aspx
    Chandrakanth/GGKTech
  • 07-18-2008 11:58 PM In reply to

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

    Hello Mickey,

    Here is code to insert new row,

     

    var parent = XDocument.DOM.selectSingleNode("/my:myFields/my:group1");

     

    var rowCloneNode = parent.selectSingleNode("my:group2").cloneNode(true);

    parent.appendChild(rowCloneNode);

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