Handling Interactive Crosstabs viewer events
The Interactive Crosstabs viewer triggers events to indicate changes in status. These events include notifications of data changes or errors. Use the registerEventHandler function found in XTabAnalyzer to handle events, as shown in the following code:
ctViewer.registerEventHandler(actuate.xtabanalyzer.EventConstants
.ON_EXCEPTION,errorHandler);
This code registers the event handler errorHandler to be called when an ON_EXCEPTION event occurs.
The XTabAnalyzer class supports the following events:
*ON_CONTENT_CHANGED
*ON_CONTENT_SELECTED
*ON_EXCEPTION
*ON_SESSION_TIMEOUT
To remove an event handler, call removeEventHandler( ).
ctViewer.removeEventHandler(actuate.xtabanalyzer.EventConstants.ON_EXCEPTION,errorHandler);
The actuate.xtabanalyzer.Exception class handles exceptions. For more information about events, see the section describing the actuate.xtabanalyzer.EventsConstants class.