Is there an easy way to force the document to always open in Read mode based on a status field in the document without having to create computed fields and hide/whens ? Needs to work in web and notes clients
Subject: Preventing Doc Edit based on a status field
I don’t work with web clients so you will have to check this advice in that respect by yourself, but for a Notes client the following works:
In the onLoad (PostOpen) event you can enter the following code:
If Source.EditMode =True and Then Source.EditMode = False
(the result will also be the same if you drop the first test and just test on your field)
Alternatively you can prevent the opening of the document ( Continue = False) in QueryOpen if the user tries to open the document in Edit Mode “Mode = 1” when your condition is fulfilled. You should then add a message to the user that editing is prevented and tell the user to open the document in read mode