This procedure is a standard K2BAudit object that is intented to be executed immediatly after a connection to the database server is made. It must be references by the After connect generator property or called by an object referenced in this property.
It's objective is to set the K2BAudit environment. The information set by this procedure is used by triggers executed in every database update operation and recorded in the audit log.
The procedure code looks like the following:
K2BGetContext(&Context)
&User = &Context.UserCode
&IP.SetEmpty()
&Tenant.SetEmpty()
K2BSaveAuditUser( &DataStoreName, &User, &IP, &Tenant)
|