Opens a standard dialog box that is used to set up user properties.
Command parameters are passed in the Data property. Executing the command requires to specify an array of the Variant type in this property, the elements of this array contain the following values:
Value type | Description |
Element 1: IMetabaseSecurity | The repository security manager that is used to grant user permissions. |
Element 2: IMetabaseUser | The user, for whom it is necessary to open setup dialog box. |
None
Executing the example requires a form and a button named Button1 on the form.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Mb: IMetabase;
MbSec: IMetabaseSecurity;
User: IMetabaseUser;
Target: IUiCommandTarget;
Context: IUiCommandExecutionContext;
Data: Array;
Begin
MB := MetabaseClass.Active;
MbSec := MB.Security;
User := MbSec.Users.Item(MbSec.Users.Count - 1);
Target := WinApplication.Instance.GetPluginTarget("Adm");
Context := Target.CreateExecutionContext;
Data := New Variant[2];
Data[0] := MbSec;
Data[1] := User;
Context.Data := Data;
Target.Execute("ShowUserProp", Context);
End Sub Button1OnClick;
Clicking the button opens a dialog box that is used to set up properties of the last user registered in the security manager.
See also: