AutoRefresh: TriState;
AutoRefresh: Prognoz.Platform.Interop.ForeSystem.TriState;
The AutoRefresh property determines whether the auto update is performed when the data is changed.
By default the property is set to TriState.Undefined, structure autoupdate parameters depend on the IAdoMdCatalog.AutoRefresh setup determined for the entire directory. If required, the AutoRefresh property can be used to specify individual mode of structure autoupdate.
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.AutoRefresh := TriState.OnOption;
(Cube As IMetabaseObject).Save;
End Sub UserProc;
On executing the example the mode of structure autoupdate is set for the specified cube.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.AdoMd;
Imports Prognoz.Platform.Interop.ForeSystem;
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.AutoRefresh := TriState.tsOnOption;
(Cube As IMetabaseObject).Save();
End Sub;
See also: