ICubeInstanceDestination.UpdateCache

Fore Syntax

UpdateCache;

Fore.NET Syntax

UpdateCache();

Description

The UpdateCache method updates cache of the opened cube instance.

Fore 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.

Fore.NET Example

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

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Cube: ICubeInstance;
    DefDes: ICubeInstanceDestination;
Begin
    Mb :=  Params.Metabase;
    Cube := Mb.ItemById["CUBE_WDI"].Open(NullAs ICubeInstance;
    DefDes := Cube.Destinations.DefaultDestination;
    DefDes.UpdateCache();
End Sub;

The result of executing the example matches with that of the Fore example.

See also:

ICubeInstanceDestination