ICalculatedCubeDimension.IsTime

Syntax

IsTime: Boolean;

Description

The IsTime property determines whether the dimension is used for controlling the choice of the formula validity.

Comments

If the property is set to True, the TimeAttribute property value also must be determined.

Example

Executing the example requires that the repository contains a calculated cube with the Calc_Cube identifier. The cube contains a calendar dimension with the CALENDAR identifier.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Cube: ICalculatedCube;
    Dim: ICalculatedCubeDimension;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("Calc_Cube").Edit;
    Cube := MObj As ICalculatedCube;
    Dim := Cube.Dimensions.FindById("CALENDAR");
    Dim.IsTime := True;
    Dim.TimeAttribute := Dim.Dimension.Attributes.Item(1);
    MObj.Save;
End Sub UserProc;

After executing the example the specified dimension is used in the calculated cube for controlling the choice of the formula actual period.

See also:

ICalculatedCubeDimension