AddDim(Dim: IDimInstance): Boolean;
Dim. The dimension that must be added to the selected area of the table header.
The AddDim method adds the specified dimension to table header.
The dimension is added to the end of the existing dimensions list. The method returns True if the dimension was added to table header, and False if addition is not available for some reason.
Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier. There is at least one fixed dimension in the dimensions list, and another one that is in rows.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Expr: IEaxAnalyzer;
Pivot: IPivot;
Header: IPivotHeader;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("EXPRESS_REPORT").Edit;
Expr := MObj As IEaxAnalyzer;
Pivot := Expr.Pivot;
Header := Pivot.LeftHeader;
Header.AddDim(Pivot.FixedHeader.Dim(0));
MObj.Save;
End Sub UserProc;
After executing the example a fixed dimension is added to the list of dimensions that are in rows. This dimension is placed at the end of the dimensions list.
See also: