老古董帆软8.0中用JS如何实现点击跳转到新的报表

setTimeout(function(){

var show_index=_g().getWidgetByName("tabpane0").getShowIndex();

//alert(show_index);

//window.location="${servletURL}?formlet=GettingStarted.cpt&show_index="+show_index;

var URL="${servletURL}?formlet=GettingStarted.cpt&show_index="+show_index;

window.open(encodeURI(encodeURI(URL))); 

},100);

执行以后,显示以下弹窗,没有跳转到新的报表

image.png

JavaScript Voice 发布于 2024-8-15 17:35
1min目标场景问卷 立即参与
回答问题
悬赏:4 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共2回答
最佳回答
1
CovidLv3高级互助
发布于2024-8-15 17:38

formlet改成 reportlet

image.png

最佳回答
1
用户k6280494Lv6专家互助
发布于2024-8-15 17:40

写报表的全路径,预览报表,从浏览器粘贴一下

var show_index=_g().getWidgetByName("tabpane0").getShowIndex();

var URL="http://xxxx?GettingStarted.cpt&show_index="+show_index;

window.open(URL); 

  • 2关注人数
  • 102浏览人数
  • 最后回答于:2024-8-15 17:40
    请选择关闭问题的原因
    确定 取消
    返回顶部