Event | Description |
getDefaultValueList | Sets the parameter’s default value. If the parameter is set to allow multiple values, this script should return an array of values that will then be pre‑selected in the parameter entry box. This event fires first. |
getSelectionValueList | Returns a single value or an array of values. For parameters presenting a list of values, this event fires before the parameter entry box displays. Simple text parameters do not call this event. |
validate | This event fires after the user selects the report parameters and before the initialize event. This event fires for each parameter and returns a value of true or false. Returning false throws an exception that states which parameter failed validation. Returning true processes the report normally. |
Event | Description |
initialize | Fires every time a task accesses the report design (.rptdesign) or the report document (.rptdocument). This event occurs once when using RunAndRenderTask. When the processing phases run separately, RunTask triggers initialize( ) once for the generation phase and RenderTask triggers initialize( ) once for every render operation. Using the page navigation controls to access a new page in the presentation phase also triggers this event handler. |
beforeFactory | Fires just prior to the generation phase after the elements in the report have been prepared in the preparation phase. This event handler fires only once. Use beforeFactory( ) when modifications to the report design are required before execution. |
beforeRender | Fires just prior to the presentation phase and is called for every render operation. In the RunAndRender task, this event occurs once just after the beforeFactory event. |
afterFactory | Fires at the conclusion of the generation phase and fires only once. If using a RunTask or RunAndRenderTask, this event is the last one fired. If using a RenderTask, this event does not execute. |
afterRender | Fires at the conclusion of the presentation phase for a specific render operation. If using a single RunAndRenderTask process, this event is called only once. If using separate RunTask and RenderTask processes, this event fires for every render operation. |
onPageStart | Fires prior to placing content on a specific page and supports the use of page‑level variables to modify the page. This event fires only when processing phases run separately, for example, a RunTask followed by a RenderTask. This event fires prior to the onPageBreak events for the individual elements to be placed on the page. This event is also available on the master page. |
onPageEnd | Fires after all the onPageBreak events have fired for the content to be placed on a page and prior to evaluating the autotext items for the page. This event is also available on the master page. |
Event | Description |
beforeOpen | This event is most often used to modify public properties of the data source, including database URL, username, password, driver class and JNDI URL. This event fires only once, before the connection to the data source opens event, when the connection uses multiple data sets. Fires prior to opening a connection to a data source. |
afterOpen | Fires after the connection to the data source opens. |
beforeClose | Fires at the conclusion of the generation phase, just prior to closing the data source connection. |
afterClose | Fires after the data source connection closes. |
open | Fires only for a scripted data source, providing a location for the developer to set up a connection to an external source. |
close | Fires only for a scripted data source, providing a location for the developer to close a connection to an external source. |
Event | Description |
beforeOpen | Fires prior to opening a data set and used most often to modify public properties of the data set. For example, when using a JDBC data set, the query text can be altered using this event. This event fires for every report item bound to the data set. If two tables use the same data set, the data set is called twice, resulting in this event firing twice. Since version 2.6, BIRT allows report items to be bound to other report items, in which case the data set is called only once, resulting in the event triggering only once. Data set caching options continue to be added which affect how often data source and data set events fire. |
afterOpen | Fires after the data set opens. |
onFetch | Fires as the data set retrieves each row of data. This event fires for all rows of data before the onCreate event for the particular report item that uses the data set. |
beforeClose | Fires before closing the data set after creating the report item that uses the data set. |
afterClose | Fires after the data set closes. |
open | Fires for a scripted data set, providing a location for the developer to set up a data set. |
fetch | Fires for a scripted data set, providing a location for the developer to populate rows from the scripted data set. |
close | Fires for a scripted data set, providing a location for the developer to close the set. |
Event | Description |
onPrepare | Fires at the beginning of the preparation phase before data binding or expression evaluation occurs. This event is useful for changing the design of the item prior to generating the item instance. |
onCreate | Fires at the time the generation phase creates the element. This event is useful when a particular instance of a report item needs alteration. |
onRender | Fires in the presentation phase. This event is useful for operations that depend on the type or format of the output document. |
onPageBreak | Fires for all report items currently on the page when the page break occurs. Not all report items support the onPageBreak event. |