Is it possible to acquire the Jobnr/Owner from a remotlock with ^$LOCK?
Hi,
in our system we usually display an information if someone locks data that another user tries to edit. Like: "Data locked by <user>/<program>"
We have a global that is set at userlogin with following information:
^BA020(0,3,$job) = "<user>;<program>"
We show that information by getting the jobnr/owner from the locktable ^$LOCK("<ref>","OWNER") and looking at ^BA020.
We recently added applicationservers to our system and the result is quite interesting. Instead of getting the jobnr from ^$LOCK when it's a remotelock I only get the name of the applicationserver e.g. APPAIXVK3. It's a documented behaviour.
The result is that we can't get the user information of ^BA020 due to the jobnr.
Is there a way to get the jobnr from an remotelock by calling ^||"APPAIXVK3"||$LOCK or is there no way?
Regards
Jochen
You're probably aware but just in case you arent there's a couple of routines that might be worth taking a look at in the %SYS namespace - ^LOCKTAB and ^%IS