IEaxAnalyzeCore.DiagnosticReport

Syntax

DiagnosticReport: IDiagnosticReport;

Description

The DiagnosticReport property determines the diagnostic report that contains results of validation rule execution.

Comments

The property is relevant if the express report is based on a workbook of time series database.

Example

Executing the example requires that the repository contains a time series database with the TSDB identifier that contains a validation rule with the VALID identifier.

It also requires a form that contains the following components:

Add links to the Metabase, Ms and Cubes system assemblies.

Sub UserProc;
Var
    Mb: IMetabase;
    RubyObj: IMetabaseObjectDescriptor;
    ValiObj: IMetabaseObject;
    ValidFilter: IValidationFilter;
    ValidExecSett: IValidationExecuteSettings;
    Analyzer: IEaxAnalyzer;
    ValidExecRun: IValidationExecRun;
    DiagRep: IDiagnosticReport;
Begin
    Mb := MetabaseClass.Active;
    // Get validation rule
    RubyObj := Mb.ItemById("TSDB");
    ValiObj := Mb.ItemByIdNamespace("VALID", RubyObj.Key).Bind;
    ValidFilter := ValiObj As IValidationFilter;
    // Execute the rule on a workbook sheet
    ValidExecSett := New ValidationExecuteSettings.Create;
    Analyzer := UiErAnalyzer1.ErAnalyzer;
    ValidExecSett.Laner := Analyzer.Laner;
    ValidExecRun := ValidFilter.Execute(ValidExecSett);
    // Show results as a diagnostic report
    DiagRep := New DiagnosticReport.Create;
    DiagRep.Run := ValidExecRun;
    Analyzer.DiagnosticReport := DiagRep;
End Sub UserProc;

Example execution result: the VALID validation rule is executed for a sheet of the workbook loaded to UiErAnalyzer1; the results are displayed on the running form.

See also:

IEaxAnalyzeCore