Copy document to database

Hi

I have a document in which I have a button to copy this document in another database and delete it from the original database. My problem is that this button is in my document and document is open when I try to delete it. How I can do this ?

Subject: Copy document to database

There is a method of the NotesUIDocument class called DeleteDocument. It allows you to delete your open document, so long as you are not in Edit Mode.

You also have to refresh the view in order for the deletion to take effect.

HTH.

brandt