[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: ProDataSets and record ID

  • Thread starter Thread starter cverbiest
  • Start date Start date
Status
Not open for further replies.
C

cverbiest

Guest
Late addition to the discussion It should be possible to find who locked a record with the LockConflict OpenEdge 11.7 Documentation and OpenEdge 11.7 Documentation *Progress.Lang.LockConflict — The AVM throws an instance of this class when a time-out occurs while waiting for a record lock or when the user presses Cancel in the dialog box displayed during the record lock waiting period. This class also provides public Device , TableName , and User properties to identify the device, database table, and user that holds the record lock. run 2 simultaneous sessions with -lkwtmo 10 -catchStop 1 executing the code below block-level on error undo, throw. do transaction: find first customer exclusive-lock . name = name + ".". validate customer. pause. catch se as Progress.Lang.LockConflict: message "Lock conflict" se:Device se:User se:TableName view-as alert-box. end catch. catch e as Progress.Lang.Error: message e:getmessage(1) skip view-as alert-box. end catch. end. message "done".

Continue reading...
 
Status
Not open for further replies.
Back
Top