ThisVersionLatestToThisUser in UIX v2 API

Need ThisVersionLatestToThisUser in UIX v2 API

How to deduce whether an M-Files object is checked out on the current computer in UIX v2?
If an object is checked out by the current user on the current computer the user should be able to check the object back in (or undo the checkout) - in this case we see the green checkmark on the metadata card.

Currently Vault API gives us the following fields, for example in ExtObjectInfo:

    "checked_out_to_user_id": 0,
    "checked_out_to_user_name": "<checked_out_to_user_name>",
    "checked_out_to_host_name": "<checked_out_to_host_name>",
    "checked_out_at_utc": {
        "seconds": 0,
        "nanos": 0
    } /* google.protobuf.Timestamp */,
    "checked_in_version": {} /* ObjVerVersion */,

We can test whether checked_out_to_user_id equals the current user's id and that would indicate the object is checked out by the current user, but it could still be checked out on a different device.

In M-Files COM there was a field ThisVersionLatestToThisUser - do we have a similar field in the new UIX v2 / Vault API?

We could also rephrase the question: for an object that is checked out, how to tell whether to display the green checkmark or the red checkout mark?

Parents Reply Children
No Data