Platform

Platform

A place for Apptio product users to learn, connect, share and grow together.

 View Only
  • 1.  html color in R12

    Posted 02/28/18 02:33 PM

    I had some KPI widgets made with HTML in R11. I had some font color using the 6 digit color number for some reds and greens. Now under R12, the text is all just black. anyone know about how to change font color in HTML in R12 studio?




    #TBMStudio


  • 2.  Re: html color in R12

    Posted 02/28/18 03:13 PM

    Kyle -

    I had to go back into my R11 instance and rob some of my HTML headers and past them into Notepad.  I then can make modifications to them for color or font and change the text as needed.  Here is one that I borrowed from one of the out of the box headers that I like to use in other reports.  For changing the color number I just google HTML color codes and go from there.

    Red = #FF0000

    Green = #01DF01

    There are so many different shades to choose from though so I would suggest going out and searching for the exact color you want.

     

    <div class="appsText" style="color:#004C76;font-size:14px;"><strong>Current FY Plan Variance by Cost Pools</strong></div>

     

    Make your changes to this and copy into the edit box for your HTML and see how it looks. 

     

    I know this is only for headers but if you can take part of this to recreate your KPI widgets it might help for the colors.


    #TBMStudio


  • 3.  Re: html color in R12

    Posted 03/01/18 01:33 PM

    One more thing to mention....

       I have not found anywhere in the reports how to see the HTML code once you have clicked "OK" in the Edit Content box.  Each time you want to make a change to the HTML the only information that will appear in that Edit Content box is the text, none of the HTML code is there.  So I have started to make it a habit to save all my HTML code in Notepad so that if I need to ever edit it a header I have it there so that I can edit it then copy and paste it into the Edit Content box.

       I'm not sure why this feature was changed in R12 - it was so much easier to work with the HTML code in R11.

     

    I hope this has helped in some way.


    #TBMStudio


  • 4.  Re: html color in R12

    Posted 03/02/18 06:09 AM

    Hello @Kyle Sellner, is this what you are looking for: https://tbmcouncil.jiveon.com/docs/DOC-4911?sr=stream ?


    #TBMStudio


  • 5.  Re: html color in R12

    Posted 03/02/18 10:17 AM

    He @Kyle Sellner, no problem if you click 'like' in a reply on your question to show that you are happy that people are trying to help you 


    #TBMStudio


  • 6.  Re: html color in R12

    Posted 03/02/18 10:05 AM

    looks like the issue I'm having is really that I was utilizing some style catalog items like "kpi-bar-pct-positive." I'm guessing those styles have lost their colors in R12? Here's my text from the HTML string:

     

    <span style="color:black">
    <%=NumberFormat(Cost YTD,"$###,###,###")%>

    <%=If(YTD True Up < 0, "<span class=""kpi-bar-pct-positive"">"&NumberFormat(Abs(YTD True Up),"$###,###,###")
    &" over charged", "<span class=""kpi-bar-pct-negative"">"&NumberFormat(Abs(YTD True Up),"$###,###,###")&" under charged")%>
    </span>

     

    In R11, that "kpi-bar-pct-positive" must have had colors associated with it because no where in here do I have a color setting for green / red but some of the text (specifically the "over charged" or "under charged") was certainly green and red prior to the upgrade. 


    #TBMStudio