How to prevent the user from delete document

In the view i am having only one document.this document should not delete by any one.does any body know abt this?

plz let me know it?

Thanks in advance.

Subject: how to prevent the user from delete document

The correct way to handle that is to limit the access to the document to readers only. To do this, you add an Editors field to the documentThe incorrect way is to write code in the QueryDocumentDelete event in the Database script.

Subject: how to prevent the user from delete document

There are only two (easy) ways to do this.1) If you have the database set up with the ACL having all ordinary users as “Author” access, then you can use an “Author” type field (with only an Admin Role for example)in the document to make sure that the document you are protecting does not allow anyone to edit it.

That will stop them from deleting it.

You would need to add a suitable author field to all the other documents too so that authors can edit those documents if they need to.

  1. Using the QueryDocumentDelete. Messy but mostly effective. If you are just trying to stop people accidentally deleting the document, this will suffice, although it wouldn’t stop someone determined.

The Editors field as mentioned in another post is not really appropriate, there is no such thing as an editor field that blocks peoples access to a document. Editor fields are fields which are restricted to allow only editors to access them. ( as far as i know )

Subject: how to prevent the user from delete document

Use the Database access control list to prevent deletion…Thats the best way