Query.QueryBuilder Command

Purpose

Opens query designer.

Application Features

The command can be used only for the Query repository object.

Example

Executing the example requires a form, a button named Button1 on the form and a query with the Query_1 identifier.

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

Clicking the button opens a designer for the query with the Query_1 identifier.

See also:

IUiCommandTarget.Execute