BIRT Exchange Forum: how can i add help text(tooltip) to some measurer celss in cross tabs using java - BIRT Exchange Forum

Jump to content


 

BIRT Poll: To best make a table fill a pdf page before breaking (PL=page layout, PBI=page break interval) set:

PL: auto, PBI: 0PL: fixed, PBI: 0PL: auto, PBI: 1000000PL: fixed, PBI: 1000000
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

how can i add help text(tooltip) to some measurer celss in cross tabs using java Rate Topic: -----

#1 User is offline   marinTz Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 22
  • Joined: 28-February 12


Posted 29 February 2012 - 04:54 AM

Hi
how can i add help text(tooltip) to some measurer celss in cross tabs using java?
0

#2 User is offline   johnw Icon

  • Senior Member
  • View blog
  • Group: Members
  • Posts: 712
  • Joined: 08-May 08


Posted 29 February 2012 - 07:34 AM

You will need to add some Javascript and use a bookmark property to do this.

So, add a bookmark expression like: "FindMeForToolTip-" + row["someId"]

So, lets say that row["someId"] is just returning Integer values 1 - 10.

Then, add a Text REport Item set to HTML at the end of the report, and have it look something like:

<script>
var element = document.getElementById("FindMeForToolTip-1");
element.onmouseover = //some function or something that handles displaying a pop-up with the tooltip. You can
                      //usually get a good idea how to do this by looking at the code generated for tooltips
                      //with Charts with Interactivity.
</script>



Thats the basic idea. What this will do is override the mouse over event in client side javascript. You might want to use a for loop to get all the elements.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users