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

Disabling Toolbars on Cognos 10.2 Prompt Page only

Started by joseph123, 10 Aug 2016 01:20:56 PM

Previous topic - Next topic

joseph123

HI

I need to disable Toolbars on Prompt Page only not on Report in Cognos viewer.
<style>
.mainViewerHeader3{ display: none; }
</style>
When I used the following code, it disables both on Prompt page and in Report.
IS there any script to do for just Prompt Page, I don't want to to change global settings as system.xml file

AnalyticsWithJay

Have you tried adding an HTML item at the top of your prompt page with the following:

<style>
.mainViewerHeader3{ display: none !important; }
</style>


If you need it to be global, you have to check if there's a difference in the HTML structure between the prompt page and the report page. For example, if the tool bar is inside a DIV called PromptPageDiv and on the report page it's ReportPageDiv we can alter the CSS code to only do it for the class .mainViewerHeader3 when it's inside the PromptPageDiv.

Let us know.


joseph123

I tried the code, toolbar is hiding on both Prompt Page and Report Page.
I need to hide in few reports not all reports.
Thanks for your input.

AnalyticsWithJay

Quote from: joseph123 on 11 Aug 2016 01:07:41 PM
I tried the code, toolbar is hiding on both Prompt Page and Report Page.
I need to hide in few reports not all reports.
Thanks for your input.

Place the HTML item in a conditional block. Create a Boolean variable "vIsPromptPage" which determines whether the page is a prompt page using "PageName ()" function. If it's a prompt page, render the block containing HTML code, else, render the blank block.

Let me know if this makes sense to you.

joseph123

I tried with Conditional Block and Boolean Variable, it's disabling on both Prompt page Report Page.