deleting repeating section row - InfoPath Dev
in

InfoPath Dev

deleting repeating section row

Last post 04-19-2012 05:38 AM by jaxkookie. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-19-2012 05:17 AM

    deleting repeating section row

    by default adding a button to a repeating section row  and 2 lines of code allow deletion of that row

    public void DeleteItem_Clicked(object sender, ClickedEventArgs e)

    {

    XPN nodeToDelete = e.Source;

    nodeToDelete.DeleteSelf();

    }

    Say my button is nested in a Section in that row. e.Source does not return the parent. in this type of schema how could I delete the node <reptsection>?

    <ReptSect>

       <reptsection>

       ... fields

           <nestedsection>contains button, but not visible in the schema</nestedsection>

       </reptsection>

    </ReptSect>

    Kind regards,
    Larry
    Filed under:
  • 04-19-2012 05:38 AM In reply to

    Re: deleting repeating section row

    sorry for the bother. Not sure why I did not think of it. I just added between the 2 lines a MoveToParent. that did it
    Kind regards,
    Larry
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.