Object.Access Command

Purpose

Setting up access permissions for the object.

Example

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

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Mb: IMetabase;
    ObjDes: IMetabaseObjectDescriptor;
    Target: IUiCommandTarget;
Begin
    MB := MetabaseClass.Active;
    ObjDes := MB.ItemById("Table_1");
    Target := WinApplication.Instance.GetObjectTarget(ObjDes);
    Target.Execute("Object.Access"Null);
End Sub Button1OnClick;

Clicking the button opens a standard dialog box, in which the user can set up access permissions for the object with the Table_1 identifier.

See also:

IUiCommandTarget.Execute