FindByKey(Key: Integer): IPrxDataIsland;
Key - the key, on which the search is based.
The FindByKey method finds an object containing a data area of the regular report based on its key and returns the object.
Sub Main;
Var
MB: IMetabase;
Report: IPrxReport;
DIs: IPrxDataIslands;
DI: IPrxDataIsland;
s: String;
Begin
MB := MetabaseClass.Active;
Report := MB.ItemById("Report").Bind As IPrxReport;
DIs := Report.DataIslands;
DI := DIs.FindByKey(1);
s := DI.Name;
End Sub Main;
After executing the example the "s" variable contains name of the data area of the regular report that has the 1 key. The identifier of the regular report - Report.
See also: