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.
In order to provide generic event handling, application event handlers might be registered for property handles (system interface, only).
- doAfterCreate - After create handler
- doAfterDelete - After delete handler
- doAfterInitialize - After initialize handler
- doAfterInsert - After inserted handler
- doAfterLocate - After locate handler
- doAfterOpen - After Open handler
- doAfterRead - After read event
- doAfterRefresh - After refresh handler
- doAfterRemove - After remove handler
- doAfterReopen - After reopen handler
- doAfterReset - After reset handler
- doAfterStore - After store handler
- doBeforeClose - Before close handler
- doBeforeCreate - Before create handler
- doBeforeDelete - Before delete handler
- doBeforeInsert - Before insert handler
- doBeforeModify - Modify handler
- doBeforeOpen - Before open handler
- doBeforeRead - Before read event handler
- doBeforeRemove - Before remove handler
- doBeforeReopen - Before reopen handler
- doBeforeSelect - Before select handler
- doBeforeStore - Before store handler
- doOnCreateError - Not created handler
- doOnDeleteError - Not deleted handler
- doOnInsertError - Not inserted handler
- doOnOpenError - Not opened handler
- doOnRemoveError - Not removed handler
- doOnStoreError - Not stored handler