Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [%Library] >  [TriggerHelper]
Private  Storage   

class %Library.TriggerHelper extends %RegisteredObject

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
6 3


Summary

Properties
msg ok operation properties time
type

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
getfield getoperation gettype


Properties

• property msg as %RawString;
Holds an error message when ok=0
• 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
• property operation as %RawString;
Holds the operation being performed. Returns INSERT, UPDATE, or DELETE depending on the current SQL /Objects operation
• property properties as %String(MAXLEN=250) [ MultiDimensional ];
Holds the property names/values that can be referenced by the Python trigger code
• property time as %RawString;
Holds the time when the trigger is pulled, 'before' or 'after'
• property type as %RawString;
Holds the type of trigger, (Foreach). row, row/object, statement

Methods

• method getfield(fieldname As %RawString, newold As %Boolean = 1) as %RawString [ Language = objectscript ]
• method getoperation() as %RawString [ Language = objectscript ]
• method gettype() as %RawString [ Language = objectscript ]


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.