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

[Unsolved]Toolbar Disabling - PDF View

Started by brucer, 27 Feb 2006 10:15:34 AM

Previous topic - Next topic

brucer

Does anybody know of a means to disable toolbars and/or buttons when viewing a report in PDF format? Modifying the system.xml will work but affects all reports and isn't selective enough for the groups it allows to see the hidden buttons. (Logged an issue with Cognos to refine that process). The previous thread on Disabling Toolbars had some example javascript that works well for individual reports as long as they are viewed in HTML format, but doesn't seem to work when the report is viewed as PDF.

Any suggestions or solutions welcome.

sir_jeroen

It's very simple and I can tell you now that it won't be possible in a way SUPPORTED by Cognos.
In pdf the buttons are still visible because the javascript that's supposed to be executed for hiding these buttons is not run because javascript can only be run in html.

What you want to do can only be done by hacking into the javascripts provided Cognos and replace the body onload events. I've done it one time.. And threw it all away after realizing what the impact was going to be. AND... Be aware of the fact that Cognos support can't help you when you're hacking into the scripts. Doing so will totally be on YOUR OWN RISK...


brucer

#2
That's pretty much what I had figured but was hoping there might be some way that I just hadn't thought of. I appreciate the response.