If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Freezing headers in a list report (8.3)

Started by beerguy82, 01 Dec 2008 01:16:45 PM

Previous topic - Next topic

beerguy82

I managed to use the Javascript supplied in the Proven Practices section of the Cognos Support Site to freeze the headers of some long list reports I have.  My problem is that I want to be able to use variable widths on the report instead of static widths.  Currently when I am using the following code:

<div name=scrollList id=list1
style="width:400;height:450;overflow:auto"
onScroll='freezePane.updateScroll(this)';>

But I want to be able to set the width to a certain %.  The problem is when I do this and resize the window, the headers get all screwed up.  Is anyone familiar enough with Javascript in order to help me?  Is there a way to make it so that upon resize, it will reinitialize this script and take a new snapshot of the header?

The js file is attached for reference.

Tim

beerguy82

I think I figured out what I need to do, but I'm not sure how to do it (I really don't know javascript at all).  Can anyone tell me how I can clear out the header that is created on the first scroll event?  If I can do that I should be able to get it to reinitialize.  Thanks.

Tim