A data set defined in JavaScript.
Represents a data set defined in JavaScript code, providing methods for opening, fetching and closing the data set. It defines the overall properties of the scripted data set including the JavaScript methods themselves and an optional result set definition.
Script Data Source element
DataSet
scripting object
The database connection that the data set is used.
Name of the data source, that is the database connection this data set is using.
DataSetParam structure
ParamBinding structure
Opens the data set.
Opens the external data set. Throws a JavaScript exception if the open fails. Often refers to report parameters or user-defined parameters for information about the data set. Optional.
beforeOpen
method
afterOpen
method
Dynamically describes the result set definition in JavaScript.
The Describe method can return null, which tells BIRT to use the static definition instead. The script can access the static description using the design object within the script.
If the method returns a column array, then the array must satisfy the following constraints:
Called before BIRT calls the
beforeOpen
method. Creates a
runt-time definition of the result set columns. Returns an array of
ResultSetColumn objects. Each object describes a column in the expected result
set. Optional.
ResultSetColumn
structure
Fetches a row from the data set.
Returns true
if there is another row to fetch, false
if there are no more
rows. When the data set has returned the last row from the result set,
subsequent calls to
fetch
should return false
.
Fetches a row from the data set on each call, and populates the current row
available in the row
property.
onFetch
method
DataRow scripting object
Called by BIRT to close the data set.
Closes the data set. Optional.
beforeClose
method
afterClose
method