IPrxSliceDimensions.FindByKey

Syntax

FindByKey(Key: Integer): IPrxSliceDimension;

Parameters

Key. Slice dimension key.

Description

The FindByKey method searches for a slice dimension based on the specified key.

Example

The following example assumes that there is the Report object with the IPrxReport type.

Sub UserProc;

Var

Report : IPrxReport;

DI : IPrxDataIsland;

SliceDims: IPrxSliceDimensions;

SliceDim: IPrxSliceDimension;

DIC : IPrxDataIslandDimension;

Begin

DI := Report.DataIslands.FindById("DATAISLAND").Edit;

SliceDims := DI.Slice.Dimensions;

SliceDim := SliceDims.FindByKey(1301);

DIC := DI.Properties.Dimension(SliceDim.Dimension.Dimension);

DIC.NamingCount := 2;

DIC.Naming(1).Expression.AsString := "D_TO1.TERRID";

DI.Save;

End Sub UserProc;

After executing the example an additional name is created for the dimension in the data area.

See also:

IPrxSliceDimensions