Delete Repeating Table rows - InfoPath Dev
in

InfoPath Dev

Delete Repeating Table rows

Last post 07-28-2010 01:11 AM by alexia_net. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-27-2010 06:40 AM

    Delete Repeating Table rows

    Hi. I am using a repeating table with 4 columns and a variable number of rows to extract some data from a table. How do I delete the rows to reinitialize the table. I can empty the rows, but I want to delete all the rows except the first one which is the header. I have tried wit this

                            objRoot = objXnDoc.SelectSingleNode((tmp_strArrayQueueGr[1] + tmp_strArrayQueueFields[j]), NamespaceManager);
                            objRoot.DeleteSelf();

     

    The first line is the Xpath for every field in the repreating table.

    The second line should do the deletion, but all it does is to empty the cell content.

    Thank you.

  • 07-27-2010 07:31 AM In reply to

    Re: Delete Repeating Table rows

    You should be selecting the repeating nodes and removing those, not the children of the repeating nodes.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 07-28-2010 01:11 AM In reply to

    Re: Delete Repeating Table rows

     Thank you. That worked fine.

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