IPrxDataIslands.FindById

Syntax

FindById(Id: String): IPrxDataIsland;

Parameters

Id - the identifier, on which the search is based.

Description

The FindById method finds an object containing a data area of the regular report based on its identifier and returns the object.

Example

Sub Main;

Var

MB: IMetabase;

Report: IPrxReport;

DIs: IPrxDataIslands;

DI: IPrxDataIsland;

i: Integer;

Begin

MB := MetabaseClass.Active;

Report := MB.ItemById("Report").Bind As IPrxReport;

DIs := Report.DataIslands;

DI := DIs.FindById("DATAISLAND1");

i := DI.Key;

End Sub Main;

After executing the example the "i" variable contains key of the data area of the regular report that has the DATAISLAND1 identifier. The identifier of the regular report - Report.

See also:

IPrxDataIslands