天天看點

如何隐藏Cognos Viewer

做BI項目很多時候需要跟Portal做內建,可以将整個BI Portal放到企業門戶或者隻是存放一些固定的報表。由于Cognos預設運作會帶出Cognos Viewer,這樣就跟門戶不太協調。

如何隐藏Cognos Viewer

有幾種辦法可以解決這個問題:

1.修改系統XML之間是以Cognos View

2. 修改URL的行為比如

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. 在報表中使用HTML代碼。下面是HTML代碼:

在10.1中測試成功的:

<style>

#headerBack

{

   display: none;

}

.mainHeader1

 .mainViewerHeader3

</style>

10之前的版本:

--Hide cognos viewer

.topRow

display:none;

<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';