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>

  • 相关阅读:
    给 Advice 传递参数
    jenkins 部署问题
    Linux里的2>&1究竟是什么
    记一次 Spring 事务配置踩坑记
    Netty
    springboot logback 集成
    SpringBoot-服务端参数验证-JSR-303验证框架
    mysql 数据库 简单存储过程游标使用
    SQL Case when 的使用方法
    解决Unsupported major.minor version 51.0错误
  • 原文地址:https://www.cnblogs.com/jiangu66/p/3181675.html
Copyright © 2011-2022 走看看