Show contents 

Report > Report Assembly Interfaces > IPrxTableSource > IPrxTableSource.DataObject

IPrxTableSource.DataObject

Syntax

DataObject: IMetabaseObject;

Description

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

Example

Executing the example requires that the repository contains a regular report with the REPORT identifier.

Sub UserProc;
Var
    MB: IMetabase;
    Rep: IPrxReport;
    TSs: IPrxTableSources;
    TS: IPrxTableSource;
Begin
    MB := MetabaseClass.Active;
    Rep := MB.ItemById("REPORT").Bind As IPrxReport;
    TSs := Rep.TableSources;
    For Each TS In TSs Do
        Debug.WriteLine(TS.DataObject.Id);
    End For;
End Sub UserProc;

After executing the example the development environment console displays a list of identifiers of repository objects used as relational data sources in the regular report.

See also:

IPrxTableSource