以下方法均是”对话框“形式进行填报
第1种方法:
直接写代码即可,但前提是父窗口报表的参数栏有参数控件,否则不会执行.代码如下:
setTimeout(function(){
parent._g().parameterCommit();
parent.FR.closeDialog();
parent.FR.destroyDialog();
},100);
如下图
![](https://hwobs-sq.fanruan.com/shequ_forum/image/f331b095a313c7062ec2c8c03ff5866e.jpg)
第2种方法:
父窗口的超链接勾选继承参数,后在子报表的事件中获取参数和执行JS语句:window.parent.location="${servletURL}?viewlet=目录路径/报表名.cpt&op=view&主表参数1="+js事件里获取的主表参数1+"&主表参数2="+js事件里获取的主表参数2;
,如下图:
![](https://hwobs-sq.fanruan.com/shequ_forum/image/a2b06db0816f4bc29ed7a9b675a43414.jpg)
![](https://hwobs-sq.fanruan.com/shequ_forum/image/a6386a6e49948c5aea354da013f05ed9.jpg)
|