IPrxDataSource.DataObject

Syntax

DataObject: IMetabaseObject;

Description

The DataObject property returns a repository object corresponding to the specified data source.

Example

Executing the example requires a regular report with the REGULAR_REPORT identifier that contains data sources. Add links to the Metabase, Report system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Rep: IPrxReport;
    DSs: IPrxDataSources;
    DS: IPrxDataSource;
Begin
    MB := MetabaseClass.Active;
    Rep := MB.ItemById("REGULAR_REPORT").Bind As IPrxReport;
    DSs := Rep.DataSources;
    For Each DS In DSs Do
        Debug.WriteLine(DS.DataObject.Id);
    End For;
End Sub UserProc;

After executing the example the console displays identifiers of repository objects included into regular report data source.

See also:

IPrxDataSource