Record Lock Status of current record being displayed (AREV Specific)
At 28 FEB 2002 10:28:56PM Bob Laqua wrote:
Is there anyway to test whether the current window was able to lock the record being displayed.
Thanks
Bob
At 01 MAR 2002 11:05AM Don Miller - C3 Inc. wrote:
It's easy enough as a post process on the key which causes a row to be read / locked. Just attempt to lock the same record again. If the ELSE branch is taken, you can check STATUS() to see if it was locked by someone else or by the workstation itself somewhere else.
Like:
LOCK WC_SRC_FILE%,@ID THEN
whoops, the record isn't locked by the window ..END ELSE
ST=STATUS()
st=0 indicates another station
st=1 indicates the station's own lockEND
HTH.
Don Miller
At 01 MAR 2002 12:46PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
You can also check the WC_WLOCKED% window common variable.
There's nothing else in the system I know of that sets this variable. WINDOW uses it to protect the window fields if the record is locked.
World Leaders in all things RevSoft
At 06 MAR 2002 07:55PM Bob Laqua wrote:
Thanks Sprezzatura
Thats what I was looking for!