IsTime: Boolean;
The IsTime property determines whether the dimension is used for controlling the choice of the formula actual period. If the property is set to True, the TimeAttribute property value also must be determined.
Executing the example requires a calculated cube with the Calc_Cube identifier. A cube contains a calendar dimension with the CALENDAR identifier.
Sub Main;
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 Main;
After executing the example a dimension with the CALENDAR identifier is used in the calculated cube for controlling the choice of the formula actual period.
See also: