I need help on code to stop users from editing a lotus notes document after an author creating it. Only a manager can edit the documetn.
I had problem coding it in a form.
I need help on code to stop users from editing a lotus notes document after an author creating it. Only a manager can edit the documetn.
I had problem coding it in a form.
Subject: Just remove that person’s name
Assuming you had a field for the document creator (authors field) than just remove the field from the document. You can do that via an agent or in the form using a button or other formula logic.
Field DocCreate:= @deletefield;
Howard
Subject: Just remove that person’s name
Removing the field might be a problem if the author’s name is displayed on the form or used for mailing documents.
However, you could just remove the authors flag from the item. i.e. item.IsAuthors = false.
Subject: One thing that I have done is assign
a role to those users that are allowed to edit documents.
Then in the QueryModeChange event I add some code to see if a user has that role before the document is allowed to go into edit mode.
This method works very well for what I need.