It opens a dialog box that is used to set up dictionary selection schemas.
Command parameters are passed in the Data property. Executing the command requires to specify the following value in this property:
Value type | Description |
IMetabaseObjectDescriptor | Repository dictionary description. |
The command can be executed only for repository dictionaries. Executing the command shows logical True if the OK button is clicked, and logical False if the Cancel button is clicked. Clicking the OK button saves all pending changes.
Executing the example requires a form and a button named Button1 on the form. The repository contains a dictionary with the Std_Dim identifier.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
MB: IMetabase;
Dim: IMetabaseObjectDescriptor;
Target: IUiCommandTarget;
Context: IUiCommandExecutionContext;
Begin
MB := MetabaseClass.Active;
Dim := MB.ItemById("STD_DIM");
Target := WinApplication.Instance.GetPluginTarget("Dim");
Context := Target.CreateExecutionContext;
Context.Data := Dim;
Target.Execute("SelectionSchemasDialog", Context);
End Sub Button1OnClick;
Clicking the button opens a dialog box that is used to set up selection schemas for the specified dictionary.
See also: