This is an archive of the Maximo Yahoo Community. The content of this pages may be a sometimes obsolete so please check post dates.
Thanks to the community owner Christopher Wanko for providing the content.
I am wondering if anyone has an idea on how to conditionally change the color of the location text within the location drilldown based on a condition? I have a request to turn the location text red within the drilldown if the location is a priority '5'. This is to highlight that this location is 'Critical'.
If possible I would like to stay away from class extensions, but if that is my only option it would be good to hear from others.
Many thanks in advance.
Well the dialog is in the library.xml
Just look for drilldown there are also examples of sigoption in the library.xml file so it might be doable
Rgds Ian
From: MAXIMO@yahoogroups.com [mailto:MAXIMO@yahoogroups.com]
Sent: 03 September 2014 12:47
To: MAXIMO@yahoogroups.com
Subject: [MAXIMO List] Conditional Display on Location Drilldown
I am wondering if anyone has an idea on how to conditionally change the color of the location text within the location drilldown based on a condition? I have a request to turn the location text red within the drilldown if the location is a priority '5'. This is to highlight that this location is 'Critical'.
If possible I would like to stay away from class extensions, but if that is my only option it would be good to hear from others.
Many thanks in advance.
GDF SUEZ E&P UK Ltd (Company Number 3386464), registered in England and Wales with a registered office address at: 40 Holborn Viaduct, London, EC1N 2PB.
**************************************************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
**************************************************************************************************************
Thanks for the reply Ian. I did try and apply the sigoption withing the library.xml with no luck. I did verify that my conditions were correct and that the condition and sigoption worked on a field within the locations application.
After further invesigation I found that the color of the text within the drilldown is controlled in line 3986 of the maximo.css
/* a.nodename: */
a.nn:link {color:black; text-decoration: none}
a.nn:active {color:black; text-decoration: none}
a.nn:visited {color:black; text-decoration: none}
a.nn:hover {color:black;text-decoration: none}
Any additional thoughts on how to accomplish this? I thought about using the extended.css but I am not sure if it is possible to put a condition within a .css?
Did you stop and start your application server ??
If you did then there is the option to add an extra field
<treeattribute dataattribute="criticality" display="true" id="location_tree_attribute3"/>
From: MAXIMO@yahoogroups.com [mailto:MAXIMO@yahoogroups.com]
Sent: 03 September 2014 14:43
To: MAXIMO@yahoogroups.com
Subject: RE: [MAXIMO List] Conditional Display on Location Drilldown
Thanks for the reply Ian. I did try and apply the sigoption withing the library.xml with no luck. I did verify that my conditions were correct and that the condition and sigoption worked on a field within the locations application.
After further invesigation I found that the color of the text within the drilldown is controlled in line 3986 of the maximo.css
/* a.nodename: */
a.nn:link {color:black; text-decoration: none}
a.nn:active {color:black; text-decoration: none}
a.nn:visited {color:black; text-decoration: none}
a.nn:hover {color:black;text-decoration: none}
Any additional thoughts on how to accomplish this? I thought about using the extended.css but I am not sure if it is possible to put a condition within a .css?
GDF SUEZ E&P UK Ltd (Company Number 3386464), registered in England and Wales with a registered office address at: 40 Holborn Viaduct, London, EC1N 2PB.
**************************************************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
**************************************************************************************************************
Would something like this help?
How to change the color of a field using conditional expressions - IBM Maximo Customization and Development http://maximodev.blogspot.com/2012/03/change-color-field-conditional.html
http://maximodev.blogspot.com/2012/03/change-color-field-conditional.html
How to change the color of a field using conditional exp... http://maximodev.blogspot.com/2012/03/change-color-field-conditional.html 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 pri...
View on maximodev.blogspot... http://maximodev.blogspot.com/2012/03/change-color-field-conditional.html
Preview by Yahoo