3.10.1 Bean Handlers

A report bean is treated as a mini-report. The bean has its own onLoad Handler and onInit Handler, just like a regular report. However, a bean does not have an onPageBreak Handler or onPrint Handler. All page break events are handled by the parent report.

The bean's onInit handler is invoked when the report loads, before the report parameters are prompted. Like the report onInit handler, the bean's onInit handler is invoked exactly once per instance. If a report bean is used in multiple instances in one report, the onInit handler for each instance is executed once.

Script that you attach to a bean runs within bean scope. This means that you can have multiple instances of a bean within the same report, and any script reference to an element within the bean is resolved to the instances inside the self-same bean.

See Also

Script Evaluation, for the general order of execution of report scripts.

<< 3.10 Report Beans © 1996-2013 InetSoft Technology Corporation (v11.5) 3.10.2 Bean Scripting Scopes >>