close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Delete multiple files

Thread began 1/03/2011 12:08 pm by junior294776 | Last modified 1/28/2014 11:17 am by Jason Byrnes | 1935 views | 7 replies |

junior294776

Delete multiple files

Is there anyway to delete multiples file using universal email delete file

Sign in to reply to this post

Jason ByrnesWebAssist

You would need to add a delete file behavior for each file you wish to delete.

Sign in to reply to this post

junior294776

can I use with delete multiple records?

I was thinking maybe use with delete multiple records..

Sign in to reply to this post

Jason ByrnesWebAssist

No the delete file behavior will not work alongside the delete multiple records behavior.

Sign in to reply to this post

troyd

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.

php:
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

Sign in to reply to this post

Jason ByrnesWebAssist

No the delete file behavior will not work alongside the delete multiple records behavior.

Sign in to reply to this post

Miguel

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

Sign in to reply to this post

Jason ByrnesWebAssist

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

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...