Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Table cell tooltip
Table cell tooltip [message #1019295] Fri, 15 March 2013 07:42 Go to next message
Mimmo Rossi is currently offline Mimmo Rossi
Messages: 130
Registered: February 2013
Senior Member
Hi All,
there is a possibility to insert a tooltip on onmouseover on a table cell with a datasetrow data?
Thanks
Re: Table cell tooltip [message #1019552 is a reply to message #1019295] Fri, 15 March 2013 20:41 Go to previous messageGo to next message
Sean Lewis is currently offline Sean Lewis
Messages: 8
Registered: February 2013
Junior Member
I don't know how well it works for an entire cell, but you can make the data element or whatever inside of it have an onhover tooltip, using the onCreate script and the items helpText :
this.helpText = this.getRowData().getColumnValue("ly_revenue");

getColumnValue is the column name of the data element, if you are referencing a different item then itself (say a hidden one). If you are refrencing it's own value you could more simply say :
this.helpText = this.getValue();


It works fine in a regular table, not so well in a crosstab. I've been trying to figure out how to get it working in a crosstab (showing a different data value) for a while.

[Updated on: Fri, 15 March 2013 20:42]

Report message to a moderator

Re: Table cell tooltip [message #1019855 is a reply to message #1019552] Sat, 16 March 2013 17:59 Go to previous messageGo to next message
Mimmo Rossi is currently offline Mimmo Rossi
Messages: 130
Registered: February 2013
Senior Member
Thanks for you reply!
Re: Table cell tooltip [message #1021540 is a reply to message #1019552] Wed, 20 March 2013 05:41 Go to previous messageGo to next message
Mimmo Rossi is currently offline Mimmo Rossi
Messages: 130
Registered: February 2013
Senior Member
Hi,
i test you script and works, but i have a problem; i would see a tooltip with this html rich text:
<P align=left>Example Example <STRONG>Example Example Example Example Example Example Example Example Example Example Example Example</STRONG> Example Example Example Example Example Example Example Example Example Example Example Example.<BR><EM><U>Example Example Example Example Example Example Example Example Example Example Example Example Example Example</U></EM> Example<FONT size=3> Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example</FONT> Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example.<BR><FONT style="BACKGROUND-COLOR: #99cc00">Example Example Example Example Example</FONT> Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example <FONT color=#ff0000>Example Example Example Example Example Example Example Example Example Example Example</FONT> Example Example Example; Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example!<BR>Example Example <FONT color=#ff0000>Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example.<BR></FONT>Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example<FONT style="BACKGROUND-COLOR: #00ffff"> Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example</FONT> Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example Example </P>

If i put this in a "dynamic text" i see the correct formatted text, but in a tooltip i see the simple text with all tag.
There is a possibility to see also in tooltip the formatter text?
Thanks
Re: Table cell tooltip [message #1292558 is a reply to message #1019552] Fri, 11 April 2014 18:52 Go to previous message
Naum Bidzovski is currently offline Naum Bidzovski
Messages: 1
Registered: April 2014
Junior Member
You can refer to a dataset dimension directly. I've just this.helpText = dimension["Promotion"]["content"]; and it worked.
Previous Topic:How to programmatically instanciate a unique data source ?‏
Next Topic:Using MS Report Server shared data source in BIRT
Goto Forum:
  


Current Time: Sat Jul 26 09:14:47 EDT 2014

Powered by FUDForum. Page generated in 0.01858 seconds