cancel
Showing results for 
Search instead for 
Did you mean: 

How can I check if a document is locked from A Custom Action Script

Casey_Tyler
Confirmed Champ
Confirmed Champ

I am having trouble with support tickets being opened because changes are not being saved. It is always the issue of the document being locked by someone else. I would like to create a custom action script to check if a the document is locked. If it is, grey out the save button and show hidden text that states that another user has the from locked. The problem is I cannot use DocumentLock on an instance of a form. Does anyone have any ideas on how to accomplish this or if it is at all possible. 

I am using OnBase 16. 

1 ACCEPTED ANSWER

Casey_Tyler
Confirmed Champ
Confirmed Champ

Hi Tyler,

Thank you so much for the reply.

Is there any way to indicate to the user that a document is locked in a more conspicuous way in the unity client. Currently you can click on the submit button without any feedback that the form is not saved. I am just trying to figure out a more apparent way to first,  demonstrate that the document is locked. Second, show the document has not been saved. 

Casey

View answer in original post

5 REPLIES 5

Hi Nick,
Thank you so much. That works. Do you know if there is a setting so it will work in a doc pop?