帆软报表下拉框联动子报表怎样实现动态加载数据

image.png

FineReport 2541747089 发布于 2023-4-21 09:32
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共1回答
最佳回答
0
CD20160914Lv8专家互助
发布于2023-4-21 09:33(编辑于 2023-4-21 09:50)

类似这样写js

//获取参数面板上面报表的名称reportname改成你自己的参数名称

 var a=this.options.form.getWidgetByName("reportname").getValue();

var URL="/webroot/decision/view/report?viewlet=wh/wang_ge/fact_ywjk_fdjsl/"+a+".cpt&op=write&__cutpage__=v&__cache__=true"; 

window.open(encodeURI(encodeURI(URL))); //弹窗

下拉框编辑结束事件:

image.png

---------------用对话框打开-------------------

 var a=this.options.form.getWidgetByName("reportname").getValue();

FR.doHyperlinkByPost({

"url":"/webroot/decision/view/report?viewlet=wh/wang_ge/fact_ywjk_fdjsl/"+a+".cpt&op=write&__cutpage__=v&__cache__=true"; 

"para":{

"__pi__":false    //不显示参数面板

},

"target":"_dialog",    

"feature":{

"width":600,

"height":400,

"title":"数据填报"

}

})

  • 2关注人数
  • 325浏览人数
  • 最后回答于:2023-4-21 09:50
    请选择关闭问题的原因
    确定 取消
    返回顶部