IEaxGrid.ApplyHighlight

Syntax

ApplyHighlight([Value: IPivotHighlightItem = Null]);

Parameters

Value. Condition for cells highlight.

Description

The ApplyHighlight method highlights data. Highlighting condition is passed in the Value parameter.

Comments

The Value parameter is not set by default and all the highlight conditions are applied for which the property value Enabled  is set to True.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Expr: IEaxAnalyzer;

Grid: IEaxGrid;

Condition: IPivotHighlightItem;

Begin

MB:=MetabaseClass.Active;

MObj:=MB.ItemById("EXPRESS_REPORT").Edit;

Expr:=MObj As IEaxAnalyzer;

Grid:=Expr.Grid;

Condition:=Expr.Pivot.Highlight.Add;

Condition.ConditionType:=PivotHighlightType.GA;

Condition.ConditionValueA:=10000;

Condition.Area:=PivotFilterArea.Table;

Grid.ApplyHighlight(Condition);

MObj.Save;

End Sub Main;

 

After executing the example all table cells that have value greater than 10,000 are highlighted in the express report. Express report identifier - EXPRESS_REPORT.

See also:

IEaxGrid