Delete multiple files
Is there anyway to delete multiples file using universal email delete file
Is there anyway to delete multiples file using universal email delete file
You would need to add a delete file behavior for each file you wish to delete.
I was thinking maybe use with delete multiple records..
No the delete file behavior will not work alongside the delete multiple records behavior.
Is there no way to do this? I am trying to figure this out myself and happened to find this post. I have a page of records that use check boxes to select the records to be deleted in a DA Delete Multiple Records behavior. That's working just fine. However it leaves behind the 3 images in each record.
I tried adding the delete file behavior, one for each image. But instead, the very first image of the first record, is deleted even if the checkbox for that record is not checked. It quickly dawned on me that I had the trigger set to the button being pushed and maybe I could set the trigger for the delete file to be the checkbox. Can this work? I have tried of course, but with the repeat selection I have not figured out how.
Tried this as my trigger but I don't know how to work in the repeat selection counter.
if((((isset($_POST["delete"]))?$_POST["delete"]:"") != "")){
Sound like I might be wasting my time but it was worth a shot. If possible, any help would be greatly appreciated.
Thanks,
TroyD
No the delete file behavior will not work alongside the delete multiple records behavior.
What solution can be done in order to delete 3 linked tables records and the files associated with each? example
Parent table --> child tale1 ---> child table2
when you delete a record from the parent table, it will pass the ID to the delete behavior
use that ID to create a recordset that looks up the associated file names.
use the delete file behavior with the file name column from the recordset to delete the files, you will need to add a recordset repeat around the delete file behavior to loop through the recordset and delete each one.
using that same ID, you can add 2 other delete record behavior to delete the records from the other 2 tables.
It will take some custom coding to accomplish this, if you need assistance setting it up, we can help in a premiere support appointment:
http://www.webassist.com/premier_request.php
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.