Show contents 

Ui > Ui Assembly Interfaces > IUiCommandTarget > IUiCommandTarget.Execute > Fld Plugin > ShowObjectProps

ShowObjectProps Command

Purpose

It opens a standard dialog box with repository object properties.

Parameters of Use

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

Value type Description
IMetabaseObjectDescriptor Description of the repository object, for which it is necessary to open properties dialog box.

Application Features

None

Example

Executing the example requires a form with the Button1 button and a repository object with the Obj_1 identifier.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    MB: IMetabase;
    Target: IUiCommandTarget;
    Context: IUiCommandExecutionContext;
Begin
    MB := MetabaseClass.Active;
    Target := WinApplication.Instance.GetPluginTarget("Fld");
    Context := Target.CreateExecutionContext;
    Context.Data := MB.ItemById("Obj_1");
    Target.Execute("ShowObjectProps", Context);
End Sub Button1OnClick;

Clicking the button opens the dialog box of the Obj_1 repository object's properties.

See also:

IUiCommandTarget.Execute