CreateUpdate Command

Purpose

Opens update manager to create a new update.

Parameters of Use

Command parameters are passed in the Data property. Executing the command requires to specify the following value in this property:

Value type Description
IMetabase The repository, within which the update is created.

Application Features

None

Example

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

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        Target: IUiCommandTarget;
        Context: IUiCommandExecutionContext;
    Begin
        Target := WinApplication.Instance.GetPluginTarget("MetabaseUpdate");
        Context := Target.CreateExecutionContext;
        Context.Data := MetabaseClass.Active;
        Target.Execute("CreateUpdate", Context);
    End Sub Button1OnClick;

Clicking the button opens the update manager. The update manager can be used to create a new update for objects of the current repository.

See also:

IUiCommandTarget.Execute