05-05-2017 01:10 PM
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.
05-09-2017 11:51 AM
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
05-09-2017 08:37 AM
Hi Casey
From the looks of things, you are using Unity Forms. Unfortunately, there are a few limitations that you will run into. Unfortunately, the Document Object is not accessible from a Custom Action Script. This is because the form may not yet be saved, resulting in a document. This makes the Document.Lock method unattainable. Additionally, this type of script will run Server Side, making it not possible to enable/disable buttons and react with the UI.
As a recommendation, I would suggest looking into use of WorkView or EForms. WorkView should not present this locking type functionality when using the Objects within a Class. EForms will allow more control Client Side with the use of JavaScript.
05-09-2017 11:51 AM
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
05-09-2017 12:27 PM
05-09-2017 01:00 PM
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.