帆软finereport带参数跳转(子页面打开与关闭)

///打开新窗口
var $iframe = $("<1iframe id=‘inp’ name=‘inp’ width=‘100%’ height=‘100%’ scrolling=‘no’ frameborder=‘0’>");//注意复制代码的时候删除 标签中的1!!!!
i f r a m e . a t t r ( " s r c " , " iframe.attr("src", "iframe.attr("src","{servletURL}?reportlet=test/yzq/WR_UPDATE_INFO.cpt&op=write&ID="+ID);
var o = {
title : “修改”,
width : 500,
height: 600
};
FR.showDialog(o.title, o.width, o.height, $iframe,o);

其中op=write表示通过填报预览打开,test/yzq/WR_UPDATE_INFO.cpt 是路径。

//关闭
window.parent.contentPane.refreshAllSheets();
window.parent.FR.closeDialog();
window.parent.FR.destroyDialog();


版权声明:本文为qq_44598783原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。