我需要一段js,通过点击这个button0跳转到其他的cpt报表上

企业微信截图_16300359127245.png

FineReport 用户CjHdT6697724 发布于 2021-8-27 11:47
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共2回答
最佳回答
0
luojian0323Lv7资深互助
发布于2021-8-27 11:54(编辑于 2021-8-27 11:56)

https://help.fanruan.com/finereport/doc-view-3127.html?source=4

或者

//按钮打开iframe对话框:

var $iframe = $("<iframe id='inp' name='inp' width='100%' height='100%' scrolling='no' frameborder='0'>"); // iframe参数的命名及宽高等

$iframe.attr("src", "${servletURL}?reportlet=目录/报表名.cpt&op=write"); //点击查询时,对话框中显示的子报表

var o = {

title : "标题",

width : 1000,

height: 500

};

FR.showDialog(o.title, o.width, o.height, $iframe,0); //首先弹出对话框

最佳回答
0
Z4u3z1Lv6专家互助
发布于2021-8-27 11:56

image.png

  • 2关注人数
  • 308浏览人数
  • 最后回答于:2021-8-27 11:56
    请选择关闭问题的原因
    确定 取消
    返回顶部