How to hide Cognos Viewer

Source: Internet
Author: User

Many bi projects need to be integrated with the portal. You can place the entire Bi portal to the enterprise portal or just store some fixed reports. Because the default running of Cognos will bring out Cognos
Viewer.

 

There are several ways to solve this problem:

 

1. Modify the Cognos view between system XML files.

 

2. Modify the URL behavior, such

Copy the URL of the report (go to Cognos connection-> go to the folder
Location of report-> right click on the selected report you want to run->
Copy shortcut) Then paste this URL in the new window and at the end of this
URL type * & cv. header = false & cv. toolbar = false *

 

3. Use HTML code in the report. The following is the HTML code:

 

Successfully tested in 10.1:

<Style>

# Headerback

{

Display: none;

}

 

. Mainheader1

{

Display: none;

}

 

. Mainviewerheader3

{

Display: none;

}

</Style>

 

Versions earlier than 10:

-- Hide Cognos Viewer

<Style>

. Toprow

{

Display: none;

}

</Style>

 

-- Hide Cognos Viewer

<SCRIPT>

Document. getelementbyid ('cvheader _ NS _ '). style. Display = "NONE ";

Document. getelementbyid ('cvtoolbar _ NS _ '). style. Display = "NONE ";

If (document. getelementbyid ('cvnavlinks _ NS _')){

Document. getelementbyid ('cvnavlinks _ NS _ '). style. Display = "NONE ";

}

</SCRIPT>

 

 

<SCRIPT type = "text/JavaScript">

Window. onload = function ()

{

If (document. getelementbyid ("cbarcvtoolbar_ns _"))

{

Document. getelementbyid ("cbarcvtoolbar_ns _"). style. displ

Ay = 'none ';

Document. getelementbyid ("cvheader_ns _"). style. Display = 'n'

One ';

}

}

</SCRIPT>

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.