IEaxGrid.HighlightEvaluatedCells

Fore Syntax

HighlightEvaluatedCells: Boolean;

Fore.NET Syntax

HighlightEvaluatedCells: boolean;

Description

The HighlightEvaluatedCells property determines icons display for calculated elements cells.

Comments

The HighlightEvaluatedCells property is applied to regular reports, express reports or dashboard designer which source is Time series database.

For regular report the property will be applied only in the desktop application.

Fore Example

Executing the example requires an express report with the EXPRESS_TIME identifier where at least one calculated element is set up. The form should contain the Button component with the Button1 identifier.

Add links to the Express and Metabase system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    MB: IMetabase;
    Eax: IEaxAnalyzer;
    Grid: IEaxGrid;
Begin
    MB := MetabaseClass.Active;
    
//Get express report
    Eax := MB.ItemById("EXPRESS_TIME").Edit As IEaxAnalyzer;
    
//Get report data table
    Grid := Eax.Grid;
    
//Determine icon display
    Grid.HighlightEvaluatedCells := Not Grid.HighlightEvaluatedCells;
    
//Save express report
    (Eax As IMetabaseObject).Save;
End Sub Button1OnClick;

After executing the example, clicking the button displays icons for calculated element cells in express report. On the second button clicking, the icons will be hidden.

Fore.NET Example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example. Use Fore.NET analogs instead of Fore components.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Metabase;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    MB: IMetabase;
    Eax: IEaxAnalyzer;
    Grid: IEaxGrid;
Begin
    MB := Self.Metabase;
    
//Get express report
    Eax := MB.ItemById["EXPRESS_TIME"].Edit() As IEaxAnalyzer;
    
//Get report data table
    Grid := Eax.Grid;
    
//Determine icon display
    Grid.HighlightEvaluatedCells := Not Grid.HighlightEvaluatedCells;
    
//Save express report
    (Eax As IMetabaseObject).Save();
End Sub;

See also:

IEaxGrid