subscriber

subscriber(): Object;

The subscriber method of the Notification class returns a reference to the object to which the notification is delivered.

The following example shows the use of the subscriber method.

vars
    notification      : Notification;
    notificationArray : NotificationArray;
begin
    create notificationArray transient;
    system.getNotes(notificationArray, true, 100);
        foreach notification in notificationArray do
            // access the notification entry properties
            write notification.target.String;
            // now check that the subscriber class is valid for this user
            if app.isValidObject(notification.subscriber) then
                write notification.subscriber.String;
            endif;
        endforeach;
epilog
    notificationArray.purge;
    delete notificationArray;
end;