按钮控件设置跳转事件

按钮控件设置跳转事件,想在当前窗口进行跳转,而不是跳转到一个新的页面,

应该怎样实现呢?试了用以下方法,在设计器中预览是可以的,但是挂载出去就不行了。

1701832179695.png

FineReport 阿洋在燃烧 发布于 2023-12-6 11:09
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共4回答
最佳回答
0
ID1208Lv6高级互助
发布于2023-12-6 11:14(编辑于 2023-12-6 11:14)
最佳回答
0
用户k6280494Lv6资深互助
发布于2023-12-6 11:11(编辑于 2023-12-6 11:14)

FS决策系统-https://help.fanruan.com/finereport/doc-view-606.html

平台内打开标签页插件-https://help.fanruan.com/finereport/doc-view-2415.html

image.png

https://help.fanruan.com/finereport/doc-view-3633.html 

FR.doHyperlinkByGet({ //报表路径 "url":"/webroot/decision/view/report?viewlet=%252FGettingStarted.cpt",    //参数 "para":{ "__pi__":true,    //是否显示参数面板 "地区":"华北" }, "target":"_dialog",    //_dialog对话框方式打开 self当前页打开 "feature":{ "width":600, "height":400, "isCenter":true,     //是否居中显示 "title":"标题" } })

最佳回答
0
snrtuemcLv8专家互助
发布于2023-12-6 11:16(编辑于 2023-12-6 11:19)

你的window.open()加一个参数试试,报表地址改下

window.open("URL","_self")

测试可用

window.open ('${servletURL}?reportlet=2.cpt','_self')

image.png

最佳回答
0
coldvcolaLv5见习互助
发布于2023-12-6 11:18

image.png

  • 4关注人数
  • 171浏览人数
  • 最后回答于:2023-12-6 11:19
    请选择关闭问题的原因
    确定 取消
    返回顶部