Disable Attachment Actions i.e. Delete and Edit

I have a Rich Text Lite field for document attachment. Once the activity is completed, i want Delete and Edit Options to be disabled from the "attachment Actions i.e. View / Open / Edit / Save / Delete ". I have put a condition in QueryMode Changed that

If Ucase(doc.mainDocStatus(0)) = “C” Then

	doc.SaveOptions = 0

	Continue = False

	Source.EditMode = False

End if

This condition prevents user to edit the document once it is completed but i cannot stop the user from deleting or editing the attached documents.

I have tried everything that could come to my head but nothing is working …

I Tried to hide the attachment field on Completed Jobs but the field never gets hidden.

I tried to copy the data of the Attachment field into another Rich Text Field but that also does not work.

Urgent help is required and would be HIGHLY appreciated.

Thanks.

Regards,

Jawad Rana.

Subject: Disable Attachment Actions i.e. Delete and Edit

For preventing deleting:Will it be able to count the No. of attachments in “QuerySave”,if found that the No.of attachments has been changed, then the document will not be saved?

Just a initial idea to share with you, and is it feasible?

Thanks ,

Ken

Subject: Disable Attachment Actions i.e. Delete and Edit

As long as the user has editiong access to the document he will be able to delete the attachment from the document. There are about a zillion ways to do this and you will not be able to prevent him from doing that. The solution is to add an Author names field to the document, and remove the user’s name from that field once the activity is completed (also make sure that the user has no more than “Author” level access in the database ACL).

Hope this helps.

Best regards

Mario Varchmin

Subject: DONE :slight_smile: - Disable Attachment Actions i.e. Delete and Edit

Finally was Able to do it. Here is the solution.

I created 2 subforms

1 Subform : Contains a Rich Text Lite Field to attach documents.

2 Subform : Contains Computer Rich Text Field with the value of the Rich Text Lite Field.

On the Main form, i inserted a Computer Subform, which checks that if the Job is Completed then display the 2nd Subform or Else Display the 1st Subform. Now the Edit and Delete Buttons have disappeard :slight_smile: … Problem Resolved.

Cheers :slight_smile:

Regards,

Jawad Rana

Subject: RE: DONE :slight_smile: - Disable Attachment Actions i.e. Delete and Edit

Not really :slight_smile: The user could still remove the attachment using a simple LotusScript agent…

Subject: RE: DONE :slight_smile: - Disable Attachment Actions i.e. Delete and Edit

And can’t the user still Save the attachment somewhere? I was able to get rid of the edit & delete buttons by changing their ACL access to Reader (which I understand may not be feasible for you) but the problem I’m having is stopping the user from saving. We have attachments that we can not have the users save anywhere so I’m trying to block that option from them. Anyone know who to do this??