zoukankan      html  css  js  c++  java
  • 如何隐藏Cognos Viewer

    BI项目很多时候需要跟Portal做集成,可以将整个BI Portal放到企业门户或者只是存放一些固定的报表。由于Cognos默认运行会带出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

    {

       display: none;

    }

     

     .mainViewerHeader3

    {

       display: none;

    }

    </style>

     

    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>

  • 相关阅读:
    es6-字符串常用方法
    新增行数据校验
    python-Django路由传参
    递归算法
    CSS动画效果
    克隆远程仓库
    添加git仓库
    滚动条——overflow:auto 自定义样式
    CSS——链接伪类选择器
    进程,线程,同步 ,异步
  • 原文地址:https://www.cnblogs.com/jiangu66/p/3181675.html
Copyright © 2011-2022 走看看