Question & Answer
In the UI presentation framework there is a property – ‘labelcss’ – that is not exposed on the Control Properties dialog for any control but can be used by entering it directly in the xml or in a conditional configuration.
The labelcss attribute can be applied to any control with a ‘label’ property. Multiple valid values can be entered separated by spaces for example ‘txtred txtbold’ to make the text red and bold. Changes may not render the same everywhere in Maximo. This is due to the nature of css files and may differ based on how the cascade properties are set in the other css files to drive the control behavior.
You would need to add the csslabel attribute to the XML Manually after exporting the XML file and once the changes have been made, reimport the XML file using App Designer.
From the Go To menu select App Designer.
Select the application you want to modify.
Select the Export toolbar icon.
Save the XML file as a backup and make a copy to modify.
Open the XML file with a text editor and find the line of code for the label you wish to modify.
<tablecol id="results_showlist_tablebody_8" dataattribute="islinear" linkedcontrolid="qbe_grid2_1_1_islinear" licensekey="LINEAR" />
You would add one or more labelcss attributes so that the modified line would look like:
<tablecol id="results_showlist_tablebody_8" dataattribute="islinear" linkedcontrolid="qbe_grid2_1_1_islinear" licensekey="LINEAR" labelcss="txtred"/>
Save the XML file after the changes, you will need to import the XML file for the changes to take effect.
Back in App Designer, select the Import toolbar option and browse to your modified file and import it.
Valid values for labelcss property :
txtbold bold text
txtitalic italic text
strike through text
txtuppercase UPPER CASE TEXT
txtlowercase lower case text
13 April 2021