FindByName(Name: String): IPrxSliceDimension;
Name. Dimension name.
The FindByName method searches for a slice dimension based on the specified name.
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.FindByName("Territories");
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: