Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
how can i add help text(tooltip) to some measurer celss in cross tabs using java
marinTz
Hi
how can i add help text(tooltip) to some measurer celss in cross tabs using java?
Find more posts tagged with
Comments
johnw
You will need to add some Javascript and use a bookmark property to do this.<br />
<br />
So, add a bookmark expression like: "FindMeForToolTip-" + row["someId"]<br />
<br />
So, lets say that row["someId"] is just returning Integer values 1 - 10.<br />
<br />
Then, add a Text REport Item set to HTML at the end of the report, and have it look something like:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
<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>
</pre>
<br />
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.