rvdbdataprovider TRVReportDBDataProvider

Properties   Methods     Events

<< Click to display table of contents >>

rvdbdataprovider TRVReportDBDataProvider

Properties   Methods     Events

An universal database-related data provider for report generators.

Unit RVReportDBDataProvider;


TRVReportDBDataProvider = class (TRVReportCustomDBDataProvider)



Use this component to provide data from TDataSet-based components, if Report Workshop does not have special data providers for them.

This component offers two ways to provide datasets:

1. DataSets collection allows using existing TDataSet components. A typical data query: a single word identifying a dataset.

2. OnCreateDataSet event, where you can either create a new TDataSet component or return a link to existing TDataSet component. A typical data query: SQL SELECT statement, or a table name.

This data provider handles the following data queries:

dataset name (must be equal to one of DataSets[].Name)

A data provider receives data query strings from TRVReportGenerator components, and creates TRVReportDBQueryProcessor objects to handle them. Normally, this process is invisible for you, TRVReportDBQueryProcessor is used internally. You only need to provide a dataset object.

The design of this component is very similar to the design of TRVReportBindSourceDataProvider. While this component gets data from DataSets collection, TRVReportBindSourceDataProvider gets data from its BindSources collection.

See also

Definitions of Report Workshop terms