ICubeInstanceDestination.UpdateCache

Syntax

UpdateCache;

Description

The UpdateCache method updates cache of the opened cube instance.

Example

To execute the example, add links to the Metabase and Cubes system assemblies. A cube with the CUBE_WDI identifier is supposed to be in the repository.

Sub UserProc;
Var
    MB: IMetabase;
    Cube: ICubeInstance;
    DefDes: ICubeInstanceDestination;
Begin
    Mb := MetabaseClass.Active;
    Cube := Mb.ItemById("CUBE_WDI").Open(NullAs ICubeInstance;
    DefDes := Cube.Destinations.DefaultDestination;
    DefDes.UpdateCache;
End Sub UserProc;

After executing the example the cache of the cube with the CUBE_WDI identifier will be updated.

See also:

ICubeInstanceDestination