Maximo Open Forum

 View Only
  • 1.  Changing Display Fonts

    Posted 12 days ago

    Hello all, 

    I have been asked to find a way to make certain fields in the work order tracking application appear different from others. This will allow techs to focus in on the fields that should be entered every time, I do not want to make these fields required as there are rare occasions where they will be left blank on purpose. 

    For example, I'd like to make the "work type" field highlighted or bolded etc. while the "GL Account" filed will stay as it is currently displayed. 

    Thanks in advance!


    #Administration
    #WorkManagement

    ------------------------------
    Brett Hawkins
    ------------------------------


  • 2.  RE: Changing Display Fonts

    Posted 10 days ago

    Hi Brett,

    One quick way to do this is to use HTML syntax in the Label field. For example add "<h1 style="background-color:Tomato;">Tomato</h1>" to the WORKTYPE field in App Designer

    You can also use labelcss tags as per the following IBM Technote https://community.ibm.com/community/user/asset-facilities/discussion/labelcss-txt-colors-in-761



    ------------------------------
    Michael Marsonet
    MRM-EAM Consulting Inc.
    ------------------------------



  • 3.  RE: Changing Display Fonts

    Posted 10 days ago

    Thanks a ton for the insight, that was almost exactly what I needed! Would you happen to know if there is a way to get just the background behind the text to change color, or maybe even the text itself? When I use the HTML you provided it changes the whole background object to that color and messes with the alignment of the object. I probably explained that horribly, so I attached a picture for reference.

    Ideally I'd like to make the change without it impacting the overall alignment/layout of the WOTRACK app. 



    ------------------------------
    Brett Hawkins
    ------------------------------



  • 4.  RE: Changing Display Fonts

    Posted 10 days ago

    Brett, you can try "<h3 style="color:Tomato;">Hello World</h3>"

    Here is a web site I use from time to time to refresh my HTML knowledge. I like this site as it has "Try it yourself" so you can see the code before you put it into maximo.



    ------------------------------
    Michael Marsonet
    MRM-EAM Consulting Inc.
    ------------------------------



  • 5.  RE: Changing Display Fonts

    Posted 10 days ago

    Michael, 

    I actually used that website to try and adjust just the font color, very similarly to your above HTML. The issue that arises when doing that is similar to changing the background color. Not sure what would be causing it, but it moves everything to a "new" line. 

    My HTML is VERY rusty, so maybe I'm overlooking something.

    Picture for reference:



    ------------------------------
    Brett Hawkins
    ------------------------------



  • 6.  RE: Changing Display Fonts

    Posted 9 days ago

    Hi Brett

    Have you looked at this from IBM? https://www.ibm.com/support/pages/conditionally-adding-field-background-colors

    You can set the background and/or text color following the instructions in application designer.  Example a yellow background would be bgyellow and yellow would be txtyellow.  Hope this helps

    Jim



    ------------------------------
    Jim Robb
    Axient Corp.
    ------------------------------



  • 7.  RE: Changing Display Fonts

    Posted 9 days ago

    James,

    This worked wonderfully to be able to highlight fields. I created a conditional expression that checked to see if the field was blank, and if so it highlights the field so techs don't miss it when entering information. If the field is not blank (null) the field does not highlight and instead remains as normal. 

    Do you know if there is a way to create a conditional expression where I can apply that expression to several fields? With the way I used this time, I would have to create a conditional expression for each field I want to highlight, which isn't horrible but figured there may be an easier way to accomplish it. 



    ------------------------------
    Brett Hawkins
    ------------------------------