Dear all, i am facing one problem. In my application there are so many Status. For perticular status i need to restrict the document not to edit by anybody. i tried by writting the code in post open , querymode change but no use please help.
PostOpen is too late already. You would want to write code like that in the QueryOpen and QueryModeChange event. QueryOpen provides a parameter Mode, which you can use to control that the document is always opened in read mode, QueryModeChange provides a parameter Continue which you can set to False, if Status = “NoEditStatus”.
However, this only restricts changes to the document through the UI.
A better approach would be an architecture, where all users but admins have author access only. Now, if you clear all author fields when the status in question has been reached, nobody will be able to edit documents without further coding and regardless of the front-end or back-end access.