Need to change the color of a label conditionally using a control.
I have a grid that displays the status of the product ( some data from external system ). The list of the products should be displayed on a table format to the user with the status being disaplyed in different colors based on the status value.
This below snippet can be used as the control to get the colored values.
Control can be a parameterised one to send the property that to be checked in the conditions.
In the below snippet "Property" is the parameter in the control with "smartpromt type" as Rule-Obj-Property.