Conditional highlighting

Top  Previous  Next

Conditional highlighting

Top Previous Next

      This feature of the ”Text” object allows one to color an object according to a specified condition. Any expression can be a condition. We’ll use the example with groups to demonstrate. Let the order totals, which are larger than 5000, be green-colored.  Select the object with the “Group."ItemsTotal"” field and click on the “Conditional highlighting” _img147 button in the designer toolbar. In the conditional highlight editor, enter a condition, which after the value is exceeded, the object will be highlighted, and specify the color attributes to change (font parameters and background color).

 

clip0182

 

      The preview result will appear as follows:

 

_img149

 

      Note the conditional expression we specified (Value > 5000). Value is the DB field value, to which the object is linked. In a similar way, the “<Group."ItemsTotal"> > 5000” condition may be set. In general, any expression, which is correct in terms of FastReport, may be specified here.