Thank you very much. I meant that one job which is everything in process waits for being called with another. One process call other
- Log in to post comments
Thank you very much. I meant that one job which is everything in process waits for being called with another. One process call other
Thank you all, dear friends for your help. You all really helped me.
Trigger LogInsert [ Event = INSERT, Foreach = row/object, Time = AFTER ]
{
S className = ..%ClassName(1)
S cls=##class(%Dictionary.CompiledClass).%OpenId(className)
F i = 1:1:cls.Properties.Count() {
S prop = cls.Properties.GetAt(i)
S propName = prop.Name
i prop.Name'["%" {
b
S idRow = {Id}
x "s value={"_propName_"}"
s date=+$h,time=$p($h,",",2)
&sql(INSERT INTO LogClass (className, dateOfChange, fieldName, ip, newValue, oldValue, operation, timeOfChange, users)
VALUES (:classname,:date,:propName, '192:168:1:1',:value,'','Insert',:time,'asfasf'))
}
}
Dear Sean I would glad to get a code for update trigger that iterate on all updated properties of a derived class and writes log to a log table.
Thank you very much for your help
Could you share documents where I'm able to read how to do it, please