Development notes, tips and tricks for Oracle's HTML DB

Wednesday, July 07, 2004

Dynamically highlight rows in report.

To dynamically highlight rows in a htmldb report you need to use javascript. I found a nice script to do this at www.dhtmlshock.com (thanks Shivaji.)



1.
Create or alter a report template. In the 'Before Each Row' section paste:

<tr onMouseOver="cOn(this);" onMouseOut="cOut(this);">

In the 'After Each Row' section paste:

</tr>

2.
In the report page definition click on the page attributes and navigate to the HTML Header section. Paste the following script into this section:

-----------------------------------

<script language="JavaScript1.2">

/*
To comply with copyright please download the script from here: www.dhtmlshock.com
*/

</script>

-----------------------------------

3.
In the report region navigate to the 'Layout and Pagination' section and select the report template you altered above.

4.
Now the report row will get highlighted when you mouse over. If you want to change colors, edit the color attributes in the javascript.

2 Comments:

Blogger S said...

Flieger,

I can't read the code in between the script tags. I'll try in a few other browsers, but you may want to look at it.

Sergio

5:35 AM

 
Blogger S said...

Never mind, I didn't read the comment in the script itself. Perhaps you could move the link down to step 2 and instruct readers to copy the script from there.

Sergio

5:37 AM

 

Post a Comment

<< Home