Attributes: String;
The Attributes property determines the attributes, which values are used to find values in the index. This property must be used when the index determined by the IPrxDimensionDrill.Index property is bound to several attributes. Specify attributes of the dimension, for which the detailing is set up and which elements are to be used as hyperlinks. Values of attributes of the IPrxDimensionDrill.Index index are to be searched based on the value of these dimension attributes. Therefore, correspondence between the elements of dimensions is established.
Use semicolon (;) to separate attributes' identifiers.
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_TO1").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.Attributes := Dim.Attributes.Id.Id;
Drill.Sheet := Null;
Drill.Action := "#Sheet2!PrxChart1";
DI.Save;
End Sub UserProc;
After executing the example detailing will be set up for data area. Clicking the hyperlink results in positioning on the chart located on the second sheet of the report.
See also: