How to change the color of a field using conditional expressions

This entry is part of the Conditional Expressions HowTo.

Here is a step-by-step guide about how to dynamically highlight workorders that have a high priority in the WOTRACK application. This is just an example and the same configuration can be used to change the color of a field based on a particular condition.

Define conditional expression

Open Administration - Conditional Expression Manager application. Create the following conditional expression.

Configure WOTRACK application

Open System configuration - Platform Configuration - Applications Designer application and edit the WOTRACK application. Select the first column (Work Order) and open the properties window. Click on Configure Conditional Properties button (on TPAE 7.5 it is in the Advanced tab). Use READ as Signature Option and EVERYONE as the security group. Enter the defined condition WOHIPRI with Property=cssclass and Value=bgred. For a list of all the properties available for each control please refer to this document.
Here is how the Conditional Properties properties should look like.


Verify results

Now all the work orders with a priority equal to 1 will be highlighted in red.




Labels: , ,