IMetabaseObject.FlushInstances

Syntax

FlushInstances: Boolean;

Description

The FlushInstances method flushes cached data of an object.

The method is relevant to use if it is required to flush cache of the opened object.

Example

Executing the example requires a form, the Button1 button on it, the UiDimension component named UiDimension1 and any components used to display data of a dictionary. A dictionary connected to the component UiDimension1 has one parameter.

Add links to the Dimensions, Metabase system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
     MObj: IMetabaseObject;
     Params: IMetabaseObjectParamValues;
Begin
     MObj := UiDimension1.Dimension As IMetabaseObject;
     MObj.FlushInstances;
     Params := MObj.Params.CreateEmptyValues;
     Params.Item(0).Value := 1;
     UiDimension1.Instance := MObj.Open(Params);
End Sub Button1OnClick;

After executing the example while pressing the button a dictionary connected to the component UiDimension1 is reopened. Cached data of a dictionary are reset before reopening.

See also:

IMetabaseObject