Groupings : IPrxTableIslandGroupings;
The Groupings property determines parameters of grouping of the relational data area.
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.Add;
Gr.Field.FieldName := "ORDERS";
Gr.Caption.AsString := "VALUE";
TI.Save;
MObj.Save;
End Sub Main;
After executing the example grouping parameters are set up for the relational data area. Report - identifier of a regular report.
See also: