jmac13
Member
Hi All I'm using open edge 10.2b
I'm running a procedure within a trigger for a button which is in a .p. this procedure runs the following:
It exclusive-locks the uuser record but it doesnt seem to release the record until the program is closed.
I seen that im already in a transaction with the trigger.. but i thought if i put a transaction and released the record at the end of the procedure. but it doesnt seem to do that.. what im i doing wrong.. I just want to lock one record changed it then release it.
I'm running a procedure within a trigger for a button which is in a .p. this procedure runs the following:
Code:
procedure logAttempts:
/* assigns the number of attempts to logon as user*/
do transaction:
define input parameter ipintAttempts as integer no-undo.
define buffer bUuser for uuser.
find bUuser where
bUuser.uu-inits = g-uu-inits
exclusive-lock no-error.
if avail bUuser then
bUuser.spare-int3 = ipintAttempts.
release bUuser.
end.
end procedure.
It exclusive-locks the uuser record but it doesnt seem to release the record until the program is closed.
I seen that im already in a transaction with the trigger.. but i thought if i put a transaction and released the record at the end of the procedure. but it doesnt seem to do that.. what im i doing wrong.. I just want to lock one record changed it then release it.