company logo

5.1. Conetxt event handlers - Context event handlers

Context event handlers can be provided as overloaded functions within a user-defined context class in order to handle any type of context event. Context events are generated immediately and are passed to the context class in order to handle the event.

Context events signal events generated within the application, only, but not events generated by other applications.

In client server environments, context events are generated on client and on server side. Several events might, however, be generated on the server caused by context function running on the server. Those events are not passed to the client.

In order to handle events generated by other applications is possible, when running applications on an ODABA server. Server events can be handles by appropriate server event handlers.

Event handler return an error code (iExecutionError), which is true (1) in case of error, false (0) when being successful or -1 in order to indicate, that the handler was not executed.

Notes:

In order to provide generic event handling, application event handlers might be registered for property handles (system interface, only).

Functions