zhinengyouzi
作者zhinengyouzi·2013-12-17 20:18
商业智能工程师·苏宁易购

cognos列表与列表联动效果

字数 2875阅读 1342评论 1赞 0

在看了http://www.cognoschina.net/home/space.php?uid=957&do=blog&id=1453 cognos列表与图形联动效果这篇博客后,自己做了实验,当时会发生RSV-SRV-0042 回溯:RSReportService.cpp(856): RSException: CCL_CAUGHT: RSReportService::process()RSReportServiceMethod.cpp(259):这个错误,经修改后,现在没有错误,大家可以试试

 

1、第一处html

<u><label onclick="changeframe('

2、第二处html

[SQL1].[学生编号]   或者    [查询1].[学生编号]

3、第三处html

');"  style="width:100%;height:100%" >

4、第四处html

[查询1].[学生编号]

5、第五处html

</label ></u>

6、第六处html

<iframe frameborder="0" id="frameChart" src="" scrolling="no" height="450" width="100%"></iframe>
 <div id="loading" style="display:block; padding:100px 0 100px 0;text-align:center;color:#999999;font-size:12px;">

<script type="text/javascript">

   function changeframe(par)
    {
        sname="http://192.168.157.23:9300/p2pd/servlet/dispatch?b_action=cognosViewer&cv.header=false&cv.toolbar=false&ui.object=/content/folder[@name='光标练习']/folder[@name='LG']/report[@name='lililg']&ui.action=run&run.prompt=false&p_p_sno="+par;
         frameChart.location.href=sname;      

    }

changeframe(3);

 var flag=-1;

       var a = document.getElementById("frameChart");
      var b = document.getElementById("loading");
      a.style.display = "none";
      b.style.display = "block";
             if (window.ActiveXObject) {
     a.onreadystatechange = function()
      {
  
          if (this.readyState=="complete")
           {
   if(flag==-1){
    a.style.display = "none";
          b.style.display = "block";
    flag=1;


   }else{

   

   b.innerHTML = "";
                 b.style.display = "none";
                a.style.display = "";
   flag=1;
   }

            }
      }
     }else{
       a.style.display = "block"; //隐藏
       b.style.display = "none";
     }
  </script>

 这是第一张报表

效果图

下面这张表利用上面那些html,



下面是第二张报表,把路径注意一下,参数设置好了就行了

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

0

添加新评论1 条评论

小诶1978小诶1978其它个体
2015-05-12 19:46
我也出现这个错误,请问楼主修改了什么
Ctrl+Enter 发表

作者其他文章

相关问题

相关资料

X社区推广