userNotify

userNotify(eventType: Integer;              (Form)
           eventType: Integer;
           theObject: Object;
           eventTag:  Integer;
           userInfo:  Any);

userNotify(control:   control-type input;   (Control)
           eventType: Integer;
           theObject: Object;
           eventTag:  Integer;
           userInfo:  Any);

A userNotify event occurs when this event is triggered from the JADE Object Manager by a user call. If a form or control has an attached window, a requested user notification is directed to the userNotify event and a requested system notification to the sysNotify event.

The userNotify event of a window is invoked when a window notification is detected. Insert code into the userNotify event to respond to or deal with the notification, so that any required tasks are performed when the event occurs. (The Object class causeEvent, sdeCauseEvent, or sdsCauseEvent method informs the JADE Object Manager when the event coded in your method occurs.)

The method in the following example shows the use of the userNotify event.

userNotify(eventType: Integer; theObject: Object; eventTag:
           Integer; userInfo: Any) updating;
vars
begin
    if eventType = 17 then
        createGraph;
        loadTable;
    endif;
end;

The userNotify event parameters, described in the following subsections, are listed in the following table.

Parameter Contains …
eventType The type of event received
theObject The class for which the notification is to be invoked
eventTag An integer value that is required for each notification
userInfo A value of Any primitive type that is received when the event is notified