IMetabase.RefreshO

Syntax

RefreshO(Options: MetabaseRefreshOptions; [Parent: Integer = -1]);

Parameters

Options. Repository refresh parameters.

Parent. Repository object key which children object list will be refreshed.

Description

The RefreshO method refreshes the repository by the specified parameters.

NOTE. The repository refresh in the Reconnect mode is not supported, if code on Fore/Fore.NET is executed using the ForeExec operation with configured connection pooling (the Pool group of settings) for BI server.

Example

Executing the example requires a form and a button named Button1 on it.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    MB: IMetabase;
Begin
    MB := MetabaseClass.Active;
    Try
        MB.Refresh;
    Except
        If MB.IsDisconnected Then
            MB.RefreshO(
                MetabaseRefreshOptions.Reconnect Or
                MetabaseRefreshOptions.NoObjects Or
                MetabaseRefreshOptions.NoRefreshEvent);
        End If;
    End Try;
End Sub Button1OnClick;

On clicking the button repository object tree is refreshed. If an error, connected with the loss of connection with the DB server, occurs during updating, the connection is restored.

See also:

IMetabase