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

  • 1
  • 1
  • Question
  • Updated 2 years ago
  • In Progress
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
Photo of Gaurav Sharma, Certified Builder and Expert

Posted 2 years ago

  • 1
  • 1
Photo of Chris

Chris

  • 4,430 Points 4k badge 2x thumb
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.
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,434 Points 20k badge 2x thumb
Try this hack:

$("table#introText tr:first td:first").html(markup);
Photo of Chris

Chris

  • 4,430 Points 4k badge 2x thumb
Used with the image on load module?
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,434 Points 20k badge 2x thumb
YES, or another injection technique. FWIW, I test almost all of my script  from the console first.
Photo of Chris

Chris

  • 4,430 Points 4k badge 2x thumb

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.

Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,434 Points 20k badge 2x thumb
Try this: $("#descriptionInFacets").html("markup");
Hi Dan,

I tried this and this solution works for me. But if we want to disply this on a partilcular report when I need to mention the report ID because currently it is showing on the default report on the table.

Thanks,

Gaurav
Dan, can you please take a look at my above query?

Thanks in advance.

Gaurav