IMetabaseObject.FlushInstances

Syntax

FlushInstances: Boolean;

Description

The FlushInstances method flushes cached data of an object.

Comments

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

Example

Executing the example requires a form and the following components on the form: the Button1 button, the UiDimension component named UiDimension1, and any components used for displaying dictionary data. The dictionary connected to the UiDimension1 component has one parameter.

Add links to the Dimensions and 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 clicking the button the dictionary connected to the UiDimension1 component is reopened. Cached data of the dictionary are reset before reopening.

See also:

IMetabaseObject