Refresh;
Refresh();
The Refresh method refreshes the structure of the ADOMD dictionary in repository based on the information about dictionary obtained from server.
Executing the example requires that the repository contains an ADOMD catalog with the ADOMDTest identifier. The catalog includes the ADOMD dictionary with the DimTest identifier.
Sub UserProc;
Var
MB: IMetabase;
Dim: IAdoMdDimension;
Begin
MB := MetabaseClass.Active;
Dim := MB.ItemByIdNamespace("DimTest", MB.GetObjectKeyById("ADOMDTest")).Edit As IAdoMdDimension;
Dim.Refresh;
(Dim As IMetabaseObject).Save;
End Sub UserProc;
The structure of specified ADOMD dictionary is refreshed according to the dictionary information obtained from server when executing the example.
Executing the example requires that the repository contains an ADOMD catalog with the ADOMDTest identifier. The catalog includes the ADOMD dictionary with the DimTest 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;
Dim: IAdoMdDimension;
Begin
MB := Params.Metabase;
Dim := MB.ItemByIdNamespace["DimTest", MB.GetObjectKeyById("ADOMDTest")].Edit() As IAdoMdDimension;
Dim.Refresh();
(Dim As IMetabaseObject).Save();
End Sub;
The structure of specified ADOMD dictionary is refreshed according to the dictionary information obtained from server when executing the example.
See also: