IPrxTableIslandGroupingTotals.Grouping

Syntax

Grouping : IPrxTableIslandGrouping;

Description

The Grouping property returns the group, to which totals belong.

Example

Sub Main;

Var

MB: IMetabase;

MObj : IMetabaseObject;

Report : IPrxReport;

TabIs : IPrxTableIslands;

TI : IPrxTableIsland;

Grs : IPrxTableIslandGroupings;

Gr : IPrxTableIslandGrouping;

GrT : IPrxTableIslandGroupingTotals;

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);

GrT := Gr.Totals;

GrT.Caption.AsString := GrT.Grouping.Caption.AsString;

TI.Save;

MObj.Save;

End Sub Main;

After executing the example the totals title will match the group title. Report - identifier of the regular report, which sheet contains a relational data area.

See also:

IPrxTableIslandGroupingTotals