ShowObjectAccess Command

Purpose

Opens a standard dialog box that is used to set up access control parameters for a repository object.

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
IMetabaseObjectDescriptor Description of the repository object, for which it is necessary to open the access control parameters 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("ShowObjectAccess", Context);
    End Sub Button1OnClick;

Clicking the button opens the dialog box that is used to set up access parameters for the Obj_1 repository object.

See also:

IUiCommandTarget.Execute