Opens a wizard for creating a linked table.
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 folder where a linked table is to be created. |
None
Executing the example requires a form and a button named Button1 on the form.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
CommandTarget: IUiCommandTarget;
Context: IUiCommandExecutionContext;
Begin
CommandTarget := WinApplication.Instance.GetPluginTarget("Db");
Context := CommandTarget.CreateExecutionContext;
Context.Data := MetabaseClass.Active.Root;
Context.ParentWindow := Self As IWin32Window;
Context.Modal := True;
CommandTarget.Execute("LinkTables", Context);
End Sub Button1OnClick;
Clicking the buttons opens a wizard for creating a linked table. The wizard window opens modally relative to the current form. If all parameters are determined in the wizard and the Finish button is clicked, a linked table is created in the root folder of the current repository.
See also: