IPrxTableSources.FindById

Syntax

FindById(Id: String): IPrxTableSource;

Parameters

Id - identifier of a relational data source.

Description

The FindById method searches for a relational data source by the specified identifier.

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.FindById("Table");

TSource.Name := "TableSource";

MObj.Save;

End Sub Main;

After executing the example the name of the relational data source is changed. Report - identifier of a regular report.

See also:

IPrxTableSources