Island : IPrxTableIsland;
The Island property returns the relational data area, to which the group belongs.
Sub Main;
Var
MB: IMetabase;
MObj : IMetabaseObject;
Report : IPrxReport;
TabIs : IPrxTableIslands;
TI : IPrxTableIsland;
Grs : IPrxTableIslandGroupings;
Gr : IPrxTableIslandGrouping;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("Report").Edit;
Report := MObj As IPrxReport;
TabIs := Report.TableIslands;
TI := TabIs.Item(0);
TI := Ti.Edit;
Grs := TI.Groupings;
Gr := Grs.Item(0);
Gr.Indent := 2;
Gr.Island.AdjustMode := PrxAdjustMode.ColumnsThenRows;
TI.Save;
MObj.Save;
End Sub Main;
After executing the example the specified parameters are determined for the group and the relational area. Report - identifier of the regular report, which sheet contains a relational data area.
See also: