Forum Discussion

GauravSharma3's avatar
GauravSharma3
Qrew Commander
9 years ago

Can we show legend at the top of the table report?

Hi Team,

I am using row colorization in our of our table reports. So, can we show a legend at the top of the report to just giving an information about the color we using? (As we use some icons for Project condition).

Thank you in advance.

Thanks,
Gaurav
  • ChrisChris's avatar
    ChrisChris
    Qrew Assistant Captain
    You may have to just describe what you have highlighted in the description box of the report. If you have preserved an old dashboard in your database's pages section, you can make an old style dashboard with an HTML text header that you can code. Then embed your report in that old style dashboard. We haven't come to a place yet where the table page is format-able. Danimal may be able to provide you one of his hacks.
    • ChrisChris's avatar
      ChrisChris
      Qrew Assistant Captain
      Used with the image on load module?
    • _anomDiebolt_'s avatar
      _anomDiebolt_
      Qrew Elite
      YES, or another injection technique. FWIW, I test almost all of my script  from the console first.
    • ChrisChris's avatar
      ChrisChris
      Qrew Assistant Captain

      I'm using this one:

      "<img qbu=\"module\" src=\"/i/clear2x2.gif\" " &
      "onload=\"javascript:if(typeof QBU=='undefined'){QBU={};$.getScript('" &
      URLRoot() &
      "db/" &
      Dbid() &
      "?a=dbpage&pagename=legend.js')}\">"

      I call this formula text field "Legend".

      The user defined page I'm using is called legend.js, and has the following:

      $("table#introText tr:first td:first").html("<b style='color:red'>This is red</b>");

      But, it no woiking.