IUiSecManagerParams.Active

Syntax

Acitve: SecManagerMode;

Description

The Active property determines an active tab when opening security manager.

Example

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

Add links to the Metabase, Ui assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Target: IUiCommandTarget;
    Context: IUiCommandExecutionContext;
    SecParams: IUiSecManagerParams;
Begin
    Target := WinApplication.Instance.GetPluginTarget(
"Adm");
    Context := Target.CreateExecutionContext;
    SecParams := N
ew UiSecManagerParams.Create;
    SecParams.Metabase := MetabaseClass.Active; 
// Set metabase
    SecParams.Active := SecManagerMode.Classes; // Activate the Classes tab
    Context.Data := SecParams;
    Target.Execute(
"OpenNavigator", Context);
End Sub Button1OnClick;

Clicking the button opens the security manager on the Object Classes tab.

See also:

IUiSecManagerParams | OpenNavigator: Adm Plugin