cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the DateTime a Document was locked?

Zach_Perry
Champ in-the-making
Champ in-the-making

using (var lockdata = doc.LockDocument())
{
var status = lockdata.Status;
if (status == DocumentLockStatus.AlreadyLocked)
{

//Get when document was locked

}

}

Any idea how to access this information? It is stored in the database.

1 ACCEPTED ANSWER

Ramya_Kondeti
Star Contributor
Star Contributor

Hey Zach,

   I am sorry but we don't yet have a support to get the DateTime the document was locked.

The only way I could think of is to query the lock table directly may be.

View answer in original post

4 REPLIES 4

Ramya_Kondeti
Star Contributor
Star Contributor

Hey Zach,

   I am sorry but we don't yet have a support to get the DateTime the document was locked.

The only way I could think of is to query the lock table directly may be.

In addition to Ramya's response, SCR 226711 is currently in the Development Backlog for this functionality. If you would like to be attached to this SCR, please contact your first line of support in reference to that SCR.

That is what I had to end up doing. Thank you

Not applicable

From within the OnBase Thick Client, go to Admin > Utilities > Document Lock Administration.

You'll see a list of locked files there, listing the user who holds the lock and the date/time the document was locked.