![]() ![]() |
The ScriptDataSet element represents a data set defined in JavaScript, providing methods for opening, fetching and closing the data set. ScriptDataSet defines the overall properties of the scripted data set including the JavaScript methods and an optional result set definition.
DesignElement->ReportElement->DataSet
None
cachedMetaData, columnHints, comments, computedColumns, customXml, dataSource, extends, filter, name, paramBindings, parameters, resultSet, userProperties
beforeOpen, beforeClose, onFetch, afterOpen, afterClose
None
The following sections describe the methods of the ScriptDataSet element.
A script that executes after the fetch method returns false. Use this method for any clean up operations that might be necessary. An example of a clean up operation is setting an object reference to null so that it gets garbage collected.
A script that executes before BIRT fetches a row from the data set. Use this method to populate the current row in the row property. The fetch method returns true if there is another row to fetch, false if there are no more rows. When there are no more rows to return, the fetch method should return false.
A script that executes when BIRT opens the data set. The open method throws a JavaScript exception if the open fails. The open method gets information about the data set from report parameters and user-defined parameters.
![]() ![]() |