Refresh;
The Refresh method refreshes the cube structure in repository based on the information about the server cube to which the ADOMD catalog is connected.
To refresh the cube structure, the cube must be in the edit mode.
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.
See also: