How to remove attachments

Hi,

On click of a button in the view i am creating a clone document. But i dont want any attchments in the main document to come into clone document. How can i remove the attachment(s). Can anyone help me on this.

Thanks in advance.

Subject: How to remove attachments

Hi…

THis can be done using script… You can make a clone… and after that using script access the items of the document…

From there you can remove the Richtext item which has the attachment…

Alternatively…

You can also clone a document by copying all itmes except the rt field containing attachments.Use doc.copyitem method for that.