IPrxTableSource.Dataset

Syntax

Dataset : IDatasetModel;

Description

The Dataset property determines a relational data source.

Example

Sub Main;

Var

MB: IMetabase;

MObj : IMetabaseObject;

Report : IPrxReport;

TSources : IPrxTableSources;

TSource : IPrxTableSource;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemById("Report").Edit;

Report := MObj As IPrxReport;

TSources := Report.TableSources;

TSource := TSources.Add;

TSource.Dataset := MetabaseClass.Active.ItemById("Table").Bind As IDatasetModel;

TSource.Name := "TableSource";

MObj.Save;

End Sub Main;

After executing the example a relational data source is added to the console window. Report - identifier of a regular report, Table - table identifier.

See also:

IPrxTableSource