sysNotification(eventType: Integer; theObject: Object; eventTag: Integer) updating;
The sysNotification method of the Object class is called automatically by the system when a subscribed event occurs.
The sysNotification method is notified automatically by the system when the nominated object events are committed for persistent object events. For example, if you registered a system notification on an object, specifying a type of Object_Update_Event, you then receive a notification whenever that object is updated.
Use the sysNotification method to code actions that are required to be performed when a specified system event occurs; for example:
sysNotification(eventType: Integer; theObject: Object; eventTag: Integer) updating; begin if eventType = Object_Create_Event then // new fault self.createGraph; self.loadTable; endif; end;
The sysNotification method parameters, described in the following subsections, are summarized in the following table.
Parameter | Contains… |
---|---|
eventType | The type of event received from the causeEvent or |
theObject | The object for which the notification is to be received |
eventTag | An integer value that is received with each notification |