IPrxTableIslandGroupings.Item

Syntax

Item(Index: Integer): IPrxTableIslandGrouping;

Parameters

Index - group index.

Description

The Item property determines parameters of a group based on the specified index.

Example

Sub Main;

Var

MB: IMetabase;

MObj : IMetabaseObject;

Report : IPrxReport;

TabIs : IPrxTableIslands;

TI : IPrxTableIsland;

Grs : IPrxTableIslandGroupings;

Gr : IPrxTableIslandGrouping;

Style : IPrxCellStyle;

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.Field.FieldName := "ORDERS";

Gr.Caption.AsString := "VALUE";

Style := Gr.Style;

Style.BackgroundColor := New GxColor.CreateRGB(250,0,0);

TI.Save;

MObj.Save;

End Sub Main;

After executing the example parameters of the specified group are changed. Report - identifier of the regular report, which sheet contains a relational data area.

See also:

IPrxTableIslandGroupings