%Library.TriggerHelper
Class %Library.TriggerHelper Extends %RegisteredObject [ Language = objectscript ]
Properties
properties
Property properties As %String(MAXLEN = 250) [ MultiDimensional ];
Holds the property names/values that can be referenced by the Python trigger code
type
Property type As %RawString;
Holds the type of trigger, (Foreach). row, row/object, statement
operation
Property operation As %RawString;
Holds the operation being performed. Returns INSERT, UPDATE, or DELETE depending on the current SQL /Objects operation
time
Property time As %RawString;
Holds the time when the trigger is pulled, 'before' or 'after'
ok
Property ok As %RawString [ InitialExpression = 1 ];
1/0 flag. Set to 0 if the trigger failed and should cause the filing operation to report an error with a message in msg
msg
Property msg As %RawString;
Holds an error message when ok=0
Methods
getfield
Method getfield(fieldname As %RawString, newold As %Boolean = 1) As %RawString [ Language = objectscript ]
getoperation
Method getoperation() As %RawString [ Language = objectscript ]
gettype
Method gettype() As %RawString [ Language = objectscript ]