IAdoMdCube.Refresh

Fore Syntax

Refresh;

Fore.NET Syntax

Refresh();

Description

The Refresh method refreshes the cube structure in repository based on the information about the server cube to which the ADOMD catalog is connected.

Comments

To refresh the cube structure, the cube must be in the edit mode.

Fore 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.Refresh;
    (Cube As IMetabaseObject).Save;
End Sub UserProc;

The structure of specified ADOMD cube is refreshed according to the cube information obtained from server when executing this example.

Fore.NET 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. This example is an entry point of the .NET assembly.

Imports Prognoz.Platform.Interop.AdoMd;
Imports Prognoz.Platform.Interop.Metabase;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Cube: IAdoMdCube;
Begin
    MB := Params.Metabase;
    Cube := MB.ItemByIdNamespace["Cube_1", MB.GetObjectKeyById("ADOMDTest")].Edit() As IAdoMdCube;
    Cube.Refresh();
    (Cube As IMetabaseObject).Save();
End Sub;

Executing the example refreshes the structure of specified ADOMD cube according to the cube information obtained from server.

See also:

IAdoMdCube