Jade 7

sysNotify Method

The object that caused the notification is passed as a parameter.

The method determines whether the book has been checked in or checked out.

For a check in, a message is displayed on the status line with a yellow background.

For a check out, a message is displayed on the status line with a green background.

Instructions

  1. Select the ReservationForm.
  2. In the properties window, select <form>.
  3. In the methods window, select sysNotify.
  4. Copy and compile the code on the right.

sysNotify(eventType : Integer; theObject : Object;
          eventTag : Integer) updating;
vars
    bk : Book;
begin
    bk := theObject.Book;
    if bk.myBorrower = null then
        statusLine.backColor := LightYellow;
        statusLine.caption := "'" & bk.title & "' checked IN";
    else
        statusLine.backColor := LightGreen;
        statusLine.caption := "'" & bk.title & "' checked OUT";
    endif;
end;

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Contents
 
For maximum reliability, security and performance of your JADE solution, JADE Care24 is our fully comprehensive systems management offering.