PerfectForms Forums » General

Remove All rows in a table.

(6 posts)
  1. jimmyc
    Member

    Whats the best way to remove all of the rows in a table?

    Posted 1 year ago #
  2. ijobling
    Member

    simple way is to use the DELETE button in the table
    but if you are looking like your other post to do this programatically, look at the SetTableRow script where there is a 'delete row' function

    Posted 1 year ago #
  3. jimmyc
    Member

    Yes this is related to my other post. This is another case where I havent been able to find a way to loop through all of the rows of a table to delete them.

    Posted 1 year ago #
  4. ijobling
    Member

    as per other post, send over your form where you have tried the SetTableRow

    Posted 1 year ago #
  5. jimmyc
    Member

    Again, Thanks for the help Ian. For anyone else struggling with a "looping" functionality. Try using the simple branch as your loop control variable with the "Last command was successful" condition under special.

    Posted 1 year ago #
  6. saleando
    Member

    I remember making a loop in deleting table rows, I simply count all the rows in the table, made a hidden field to throw the count value and then set a simple branch if the count value is not equal to zero it will continue to delete the rows.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in or register to post.

Contact

1917 Palomar Oaks Way
Suite 160
Carlsbad, CA 92008
866.900.8588

  picture  picture  picture  picture