BIRT Exchange Forum: Javascript function to get detail data on mouse over over a table cell - 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

Javascript function to get detail data on mouse over over a table cell Rate Topic: -----

#1 User is offline   preethilk Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 30-November 08


Posted 05 June 2011 - 09:11 AM

Hi,

Need a javascript function to display 'detail' data in a 'hover - a tool tip table item', when hovering over a Table cell data.

The 'detail' table data takes the parent table's cell data as one of its parameter.

Thanks in advance
0

#2 User is offline   averma Icon

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 713
  • Joined: 08-August 07


Posted 06 June 2011 - 10:44 AM

Hi preethilk,
See the following article to see how to add a mouseover event to a table cell:
http://www.birt-exch...-report-design/

You can extend this example and display the detail data.

Ashwini
Ashwini

Follow me on Twitter
Read my Blog BIRT Rocks!
0

#3 User is offline   preethilk Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 30-November 08


Posted 06 June 2011 - 08:32 PM

Sure, I will use this example to get my mouse over table cell work done.

Thanks for the help, :)

I would like to know if you had got a chance to test the example, reason is, if the example is intended for appending to cell values, and changing its color upon mouse over, I am not getting the cell values updated with the mouse over operation.

And regarding my work, I think the following steps can be one approach as per you example suggestion and my thoughts,

1. 2 DataSets for 2 tables (1 for the parent table, and 1 for the mouse-over 'tool-tip' table.
2. Once the mouse-over event triggered, it has to take the cell value as a query parameter for my mouse-over tool-tip's dataset.
3. The result table has to be displayed on the mouse-over tool-tip item.


I will start working on this, and would like to get suggestions and right approaches to get the same, and if there are example design like the one provided for mouse-over,

Thanks in advance :)
Preethi
0

#4 User is offline   averma Icon

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 713
  • Joined: 08-August 07


Posted 09 June 2011 - 12:40 PM

Hi Preethi,
I created a sample for you to do just what you need. It has two datasets - Customer1 and Customer2. The data from Customer 2 is displayed in the table. When you hover mouse over the first column you will see a bubble help that is derived from Customer1 table. I have Customer1 data stored in a javascript array that I build in the first hidden table. Take a look and let me know if you have questions.

Ashwini

Attached File  bubble_help.rptdesign (16.95K)
Number of downloads: 56
Ashwini

Follow me on Twitter
Read my Blog BIRT Rocks!
0

#5 User is offline   preethilk Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 30-November 08


Posted 12 June 2011 - 08:48 AM

Thanks Ashwini, it really helped :)
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