IPrxSliceDimensions.Item

Syntax

Item(Index: Integer): IPrxSliceDimension;

Parameters

Index - slice dimension index.

Description

The Item property returns the object that contains a dimension of a data source of the regular report.

Example

Sub Main;

Var

MB: IMetabase;

Report: IPrxReport;

DtSources: IPrxDataSources;

Slices: IPrxSlices;

SliceDims: IPrxSliceDimensions;

SliceDim: IPrxSliceDimension;

i: Integer;

Begin

MB := MetabaseClass.Active;

Report := MB.ItemById("Report").Bind As IPrxReport;

DtSources := Report.DataSources;

Slices := DtSources.Item(0).Slices;

SliceDims := Slices.Item(0).Dimensions;

SliceDim := SliceDims.Item(0);

i := SliceDim.Key;

End Sub Main;

After executing the example the "i" variable contains the key of the first dimension of the first slice of a data source of the regular report. The identifier of the regular report - Report.

See also:

IPrxSliceDimensions