How can I restrict deletion of documents directly from a view?

How can I restrict an user (having the privilege to delete the documents) to delete documents directly from the view?

I need to create an Action “DELETE” in the form and the user can only delete the documents by opening those in that particular form and by clicking that button.

Please help me.

Thank you. Looking forward.

Subject: How can I restrict deletion of documents directly from a view?

The database script in each database has events for QueryDocumentDelete and PostDocumentDelete. In the QueryDocumentDelete event you can check which view the user is in and simply set Continue = False if you want to veto the deletion. I have done this a number of times and it works like a charm.

/Mikkel Heisterberg

Visit my Notes/Domino blog @ http://lekkimworld.com

for posts on Notes/Domino and how to use Java in Notes/Domino…

Subject: RE: How can I restrict deletion of documents directly from a view?

Thanks Mr. Mikkel Heisterberg.

Can please describe the process a bit elaborately.

Thank you very much. Looking forward.

Subject: How can I restrict deletion of documents directly from a view?

Hi…

You will have to do some work for that. At first remove the deletion rights from the user in the ACL. Then in the button on the form call an agent signed by somoene with manager access to modify ACL and change the ACL for the USer. Then use command liek doc.remove in lotusscript to remove the document.

This seems to be the only way as there is no way you can prevent user with deletion rights to SEE the Document and Delete it from view… (Unless use is not given the deletion rights)

Post back if any confusions…

Subject: RE: How can I restrict deletion of documents directly from a view?

Thank you very much for your help.

But I can not get much from your response in this part - “signed by somoene with manager access to modify ACL and change the ACL for the User”.

Can you please describe it more?

Thank you very much.

Looking forward.

Subject: RE: How can I restrict deletion of documents directly from a view?

The agent will have to made by or run on behalf of a person who has a manager access to the database.

Subject: RE: How can I restrict deletion of documents directly from a view?

Mr. Rohit Kothari,

Thank you very much for your help.