Preventing document delete from a view

Hi,

Is there a way to prevent document deletion from a view. It must be possible to delete the same document from another view.

There is no event such “QueryDocumentDelete” at the view level.

Thx.

Subject: Preventing document delete from a view

Try the QueryDocumentDelete in the Database Script. You should be able to use the CurrentView property of the Notesuiworkspace to determine whether the document can be deleted or not.

Subject: RE: Preventing document delete from a view

Thx for the solution.

Same question for preventing to create a new document.

dd

Subject: RE: Preventing document delete from a view

Easist way is to not have the form on the Create menu, and give users an action button to compose one, only in those contexts where you want to allow it.