Handling events
There are different ways of handling system and instance events in ODABA. Within an application, events are typically handles by appropriate context classes. In order to handle system and instance events by context class event handlers, corresponding event handlers have to be overloaded in the context class implementation.
Context class event handlers can be enabled and disabled calling appropriate context class or property handle functions (BaseContext::enabled()).
Besides, generic event handler can be provided. Generic event handlers have to be implemented on system interface level (PropertyHandle, EventHandler). Generic event handlers can be enabled or disabled by calling appropriate system interface functions (PropertyHandle::BlockEvents(), DBObjectHandle::EnableEventHandling()).