PerformSearch Command

Purpose

Opens a standard dialog box that is used to find an object in express report table.

Parameters of Use

Command parameters are passed in the Data property. Executing the command requires to specify the following value in this property:

Value type Description
IEaxAnalyzer The express report, for which a search dialog box must be opened.

Application Features

The command can be used only for express reports.

Example

Executing the example requires a form, a button named Button1 on the form, a TabSheetBox component and a UiErAnalyzer component named UiErAnalyzer1, which is used as a data source for TabSheetBox component.

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        Target: IUiCommandTarget;
        Context: IUiCommandExecutionContext;
    Begin
        Target := WinApplication.Instance.GetPluginTarget("Express");
        Context := Target.CreateExecutionContext;
        Context.Data := UiErAnalyzer1.ErAnalyzer;
        Target.Execute("PerformSearch", Context);
    End Sub Button1OnClick;

Clicking the button opens a standard dialog box to search objects in tables of the express report specified in the UiErAnalyzer1 component.

See also:

IUiCommandTarget.Execute