FindByKey(Key: Integer): IPrxTableIsland;
Key - key of a relational data area.
The FindByKey method searches for a relational data area by the specified key.
Sub Main;
Var
MB: IMetabase;
MObj : IMetabaseObject;
Report : IPrxReport;
TabIs : IPrxTableIslands;
TI : IPrxTableIsland;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("Report").Edit;
Report := MObj As IPrxReport;
TabIs := Report.TableIslands;
TI := TabIs.FindByKey(4);
TI.Sheet := Report.Sheets.Item(1);
TI.Save;
MObj.Save;
End Sub Main;
After executing the example the system redetermines the sheet, on which the found relational data is located. Report - identifier of a regular report.
See also: