DeVNuLL
New Member
I'm trying to write some audit code for an application written in Progress 9.1E/Webspeed 3.1E. I was planning on using table triggers for this code as a 'catch all' but I need to be able to test if a certain buffer has been defined. This buffer will only exist if the user has logged in to the application in question and not connected to the database using client/server.
The code I would imagine would look something like
TRIGGER PROCEDURE FOR WRITE OF sometable new buffer newbuf old buffer oldbuf.
create history.
if <this buffer exists> then
assign history.whodidit = <buffer>.usercode
history.whatdidit = "someapp".
else
assign history.whodidit = userid("dictdb")
history.whatdidit = "dblogin".
Any help would be very much appreciated.
The code I would imagine would look something like
TRIGGER PROCEDURE FOR WRITE OF sometable new buffer newbuf old buffer oldbuf.
create history.
if <this buffer exists> then
assign history.whodidit = <buffer>.usercode
history.whatdidit = "someapp".
else
assign history.whodidit = userid("dictdb")
history.whatdidit = "dblogin".
Any help would be very much appreciated.