ShowDataMiningDialog Command

Purpose

Opens a data mining dialog box.

Parameters of Use

Command parameters are passed in the Data property. To ensure command execution, specify an array containing the following values:

Value type Description
ILaner Workbook.
DmMethodKind Data mining method.
The following enumeration elements are available to use:
  • KmodesClusterAnalysis.

  • SelfOrganizingMap.

  • HighlightExceptions.

  • DecisionTree.

  • LogisticRegression.

  • BackPropagation.

  • KeyInfluences.

  • AssociationRules.

Example

Executing the example requires a form, the Button1 button on it and the UiErAnalyzer component named UiErAnalyzer1. UiErAnalyzer1 is configured to the express report that is based on a time series database. Add links to the Express, Metabase, Ui, Laner system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Mb: IMetabase;
    Analyzer: IEaxAnalyzer;
    Laner: ILaner;
    CommandTarget: IUiCommandTarget;
    Context: IUiCommandExecutionContext;
    DataDM: Array;
Begin
    Mb := MetabaseClass.Active;
    Analyzer := UiErAnalyzer1.ErAnalyzer;
    Laner := Analyzer.Laner;
    CommandTarget := WinApplication.Instance.GetPluginTarget("FactRubricator");
    Context := CommandTarget.CreateExecutionContext;
    DataDM := New Variant[2];
    DataDM[0] := Laner;
    DataDM[1] := DmMethodKind.KmodesClusterAnalysis;
    Context.ParentWindow := Self As IWin32Window;
    Context.Modal := True;
    Context.Data := DataDM;
    CommandTarget.Execute("ShowDataMiningDialog", Context);
End Sub Button1OnClick;

Clicking the button opens a data mining setup dialog box. The dialog box contains K-modes clustering settings.

See also:

IUiCommandTarget.Execute