inactiveTimeout

inactiveTimeout() updating;

The inactiveTimeout event method of the Application class is called automatically by the JADE executable program (jade.exe) if there has been no user activity (that is, mouse or key board action) within the number of seconds specified by the setInactiveTimeoutPeriod method period parameter. When the inactive time out occurs, the inactive timeout period is reset to zero (0), which prevents an automatic reoccurrence.

The automatic timeout does not occur if the user is in exception state.

The inactiveTimeout method defined in the Application class does nothing by default. Reimplement this method in your user applications if you want to define the handling of user timeouts in your applications. Logic in your inactiveTimeout event method must reset this value by using the setInactiveTimeoutPeriod method for another timeout event to occur.

The inactiveTimeout event method can then perform the required processing and re-establish the timeout period on completion. For example, the event could modally show the log-on form to force users to identify themselves after the inactive period, as follows.

inactiveTimeout();
vars
    form : LogonForm;
begin
    create form;
    form.showModal;                       // Force user to log on again
    self.setInactiveTimeoutPeriod(300);   // Reset timeout to 5 minutes
end;