I’m trying to achieve the following :
When I Open a page, I’d like to store somewhere the information of a lock and the name of the client using the resource.
I try to resume :
I wrote a UDT containing :
isLocked -> Bool
LockedBy -> String
Then I wrote a script on the Windows Opening section of the VisionWindow paragraph.
The script set the Bool and write the host name in the udt, which is been declared on the gateway scope.
Now the issue, when I close the window I have another script resetting the two fields, but unfortunately it does not behave as I’d like to.
It seems that when I close a window by opening another one, the script of the new opened run before the closing one.
So basically the new windows set the new Lock, and the old one reset everything.
I tried to approach different ways, but if you could give me a hint to understand how to make this run, it will solve me lots of troubles due the architecture asked by the costumer.