With a runtime data source, you can take data from
any source—such as a database, a data stream, or a flat file—manipulate it with
the programming language of your choice, and then apply it to the report.
Put your manipulated data in a
rowset form that can be processed.
See the
com.crystaldecisions.sdk.occa.report.data.IRowset
interface API Reference documentation for details
about how to create and represent data in rowsets.
Create and fill an
com.crystaldecisions.sdk.occa.report.data.IDataset
object with the rowset data.
Add or set the data source with
either the
addDataSource or
setDataSource methods of the
com.crystaldecisions.sdk.occa.report.application.DatabaseController
class.
Note: If you create a report that is
based on a data set, the data that is used is not saved with the report. To
populate the report with data the next time you open it, you must either
re-apply the data source to see current data, or access a saved version of the
data source for preview.