How to display attributes in different colors

If you want to display certain attributes of an object on a form in different colors you can use HTML cells in a form layout and reference an attribute inside the cell. For example, if you want to display attribute “MyAttribute” of the object “MyObject” in red define the following HTML cell in your form layout:

<font color=’#ff0000’><<MyObject.MyAttribute>></font>

Note that with the above method you can only show attributes as read-only.

You can also set attribute styles when defining presentation properties of an attribute – see the “Common Properties” section under the “Adding/Editing Attributes” section. With this method the attribute does not need to be read-only. You can set styles for input controls or labels or both. The advantage of this method is that you can define conditions for displaying values and labels in different colors.

If you want to show specific attribute values in different colors in queries you can define styles for the attribute as described above and then indicate that you want to use these styles in a particular query. To do this click on the “Details” button in the Display Results section and then click on the “More” button located next to the attribute entry and tick the “Use Attribute Styles” checkbox.

  • Last modified: 2023/05/09 02:00