在看了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>
这是第一张报表
如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!
赞0
添加新评论1 条评论
2015-05-12 19:46