COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Topic started by: brucer on 27 Feb 2006 10:15:34 AM

Title: [Unsolved]Toolbar Disabling - PDF View
Post by: brucer on 27 Feb 2006 10:15:34 AM
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.
Title: Re: Toolbar Disabling - PDF View
Post by: sir_jeroen on 02 Mar 2006 03:45:44 PM
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...

Title: Re: Toolbar Disabling - PDF View
Post by: brucer on 03 Mar 2006 01:15:34 PM
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.