IPrxDimensionDrill.Attribute

Syntax

Attribute: IDimAttribute;

Description

The Attribute property determines the attribute, which value is used to find values in the index. Specify attribute of the dimension, for which the detailing is set up and which elements are used as hyperlinks. Value of this attribute will be used to search for index attribute value determined by the IPrxDimensionDrill.Index property. Therefore, correspondence between the elements of dimensions is established.

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 territory info is set for the data area. Clicking the hyperlink results in positioning on the chart located on the second sheet of the report.

See also:

IPrxDimensionDrill