Opens a dialog box to explain validation errors for the selected cell.
Command parameters are passed in the Data property. To ensure command execution, specify an array containing the following values:
Value type | Description |
IDiagnosticReport | Diagnostic report. |
Integer | Cell row index. |
Integer | Cell column index. |
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;
CommandTarget: IUiCommandTarget;
Context: IUiCommandExecutionContext;
DataVD: Array;
Begin
Mb := MetabaseClass.Active;
Analyzer := UiErAnalyzer1.ErAnalyzer;
CommandTarget := WinApplication.Instance.GetPluginTarget("FactRubricator");
Context := CommandTarget.CreateExecutionContext;
DataVD := New Variant[3];
DataVD[0] := Analyzer.DiagnosticReport;
DataVD[1] := 0;
DataVD[2] := 0;
Context.Data := DataVD;
CommandTarget.Execute("ShowExplainValidationDialog", Context);
End Sub Button1OnClick;
Clicking the button opens the dialog box to explain validation errors for the cell with the 0, 0 index.
See also: