Actual DateTime Checked Out for Files
Posted: Wed Sep 12, 2007 1:23 pm
I've been writing to the client API and have created a report that scans through all repositories and gets a VaultClientCheckOutList. I am scanning through each of the items in the list and getting the user, path, and lockedwhen properties for reporting. The problem is that the lockedwhen property does not change when I expect it to.
If for example, I check out a file and lock it exclusively, make modifications, and then check it in with the "keep checked out" checkbox checked, the lockedwhen property does not change as expected. I also discovered that I'm sometimes appearing multiple times in the VaultCheckOutItem.Users[] array but it appears that the last entry is always the latest (correct me if I'm wrong). The LockedWhen property does change as expected if I check in the file without keeping it checked out, and THEN check it back out after the check in has already been transacted in a previous step.
Our users are used to using the "keep checked out" feature, and we don't want to force them to discontinue the use of that feature simply so we can get accurate metrics of how many files are checked out, by whom, and when they locked it last.
Is there a way to find out when the last checkout was for a specific repository/user/file was when the file is currently checked out based on the VaultClientCheckOutList or should I be going down some other path entirely to get that information?
thanks,
JE
If for example, I check out a file and lock it exclusively, make modifications, and then check it in with the "keep checked out" checkbox checked, the lockedwhen property does not change as expected. I also discovered that I'm sometimes appearing multiple times in the VaultCheckOutItem.Users[] array but it appears that the last entry is always the latest (correct me if I'm wrong). The LockedWhen property does change as expected if I check in the file without keeping it checked out, and THEN check it back out after the check in has already been transacted in a previous step.
Our users are used to using the "keep checked out" feature, and we don't want to force them to discontinue the use of that feature simply so we can get accurate metrics of how many files are checked out, by whom, and when they locked it last.
Is there a way to find out when the last checkout was for a specific repository/user/file was when the file is currently checked out based on the VaultClientCheckOutList or should I be going down some other path entirely to get that information?
thanks,
JE