IPrxDimensionDrill.Index

Syntax

Index: IDimIndex;

Description

The Index property determines the index that is used to search for elements. Specify index of the dimension where the selection is to be changed.

This index is to be used to search for an element corresponding to the element, which hyperlink has been clicked.

Example

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

Sub UserProc;

Var

Report : IPrxReport;

DI : IPrxDataIsland;

DIC : IPrxDataIslandDimensionCommon;

Drill : IPrxDimensionDrill;

DimMode : IPrxSliceDimension;

Dim : IDimensionModel;

Begin

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

    Dim := DI.Slice.Dimensions.FindById("D_TO").Dimension.Dimension;

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

    DIC.Drilled := TriState.OnOption;

    Drill := DIC.Drill;

    Drill.Mode := PrxDataDrillMode.Replace;

    DimMode := Report.DataSources.Item(0).Slices.Item(1).Dimensions.FindById("D_TO1");

    Drill.Dimension := DimMode;

    Drill.Index := DimMode.Dimension.Dimension.Indexes.PrimaryIndex;

    Drill.Attribute := Dim.Attributes.Id;

    Drill.Sheet := Null;

    Drill.Action := "#Sheet2!PrxChart1";

DI.Save;

End Sub UserProc;

After executing the example detailing is set up for the data area. Clicking the hyperlink results in positioning on the chart located on the second sheet of the report.

See also:

IPrxDimensionDrill.Attribute | IPrxDimensionDrill