Skip to main content
Inspiring
November 30, 2006
Question

Mass Deletes

  • November 30, 2006
  • 1 reply
  • 242 views
I have a cf report that is displayed in table format. I want to add a check box at the front of each row so that if it is checked, that entire row/record will be deleted from the db.

If I currentl display 10 rows and want to delete 8 of them, then I would check those 8 boxes and hit the delete button and they should be deleted from th db.

How can this be done ?

Thanks for any help.
    This topic has been closed for replies.

    1 reply

    Inspiring
    November 30, 2006
    When you construct your form, use a loop to output your check-boxes and append the loop index to the name of each check-box (thereby giving you a unique name for each check-box). Then, use a loop on your action page to check the value of each check-box. If it's checked, fire your delete code.