A specialized data source defined in JavaScript.
A scripted data source is one that is defined in JavaScript. The actual implementation can also be in Java, with a JavaScript wrapper. The application is responsible for implementing two operations:
A scripted data source may use user-defined properties to define connection-specific properties. Doing so allows the developer to put the data source into a library, and use it in many reports. For example, the developer may define a SOAP data source with properties for the server name, port number and so on. The scripts associated with the data source use the ROM scripting objects to access the value of these custom properties.
ScriptDataSet element
DataSource
scripting object
Establishes a connection to the external data source.
Called by BIRT to establish a connection to the data source. Throws a JavaScript exception if the connection fails.
beforeOpen
method
afterOpen
method
Releases the connection to the external data source.
Called when BIRT wishes to close the data source. Should release the connection to the external data source.
beforeClose
method
afterClose
method