IAdoMdCube.AutoRefresh

Syntax

AutoRefresh: TriState;

Description

The AutoRefresh property determines whether the auto update is performed when the data is changed.

Comments

By default the property is set to TriState.Undefined, structure autoupdate parameters depend on the IAdoMdCatalog.AutoRefresh setup determined for the entire directory. If required, the AutoRefresh property can be used to specify individual mode of structure autoupdate.

Example

Executing the example requires that the repository contains an ADOMD catalog with the ADOMDTest identifier. The catalog contains the ADOMD cube with the Cube_1 identifier.

Sub UserProc;
Var
    MB: IMetabase;
    Cube: IAdoMdCube;
Begin
    MB := MetabaseClass.Active;
    Cube := MB.ItemByIdNamespace("Cube_1", MB.GetObjectKeyById("ADOMDTest")).Edit As IAdoMdCube;
    Cube.AutoRefresh := TriState.OnOption;
    (Cube As IMetabaseObject).Save;
End Sub UserProc;

On executing the example the mode of structure autoupdate is set for the specified cube.

See also:

IAdoMdCube