填报

在界面上自定义一个按钮,点击弹出另一个对话框-填报页面,该怎么实现

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

直接window.open("url &op=write")

window.open("/webroot/decision/view/report?viewlet=GettingStarted.cpt&op=write")

类似这样也可以

var w=800;

var h=600

var url = encodeURI("/webroot/decision/view/report?viewlet=GettingStarted.cpt&op=write");

//窗体

var $iframe = $("<iframe id='inp' name='inp' width='100%' height='100%' scrolling='no' frameborder='0'>");

//将窗体的src属性设置为模板路径

$iframe.attr("src", url);

//窗体的属性

var o = {    

title: "我是对话框",  //标题   

 width: w,   //宽度    

  height: h //高度 

  //closable:true,    //是否显示关闭按钮,默认true,如果改为false就不显示关闭按钮了

    //confirm:true,     //是否添加确认取消按钮,默认false

    //draggable:true   //是否可拖动,默认true 

 };

//弹出窗体

FR.showDialog(o.title, o.width, o.height, $iframe, o);

最佳回答
0
snrtuemcLv8专家互助
发布于2025-10-16 13:54

var a=_g().getWidgetByName("控件名1").getValue();

var b=_g().getWidgetByName("控件名2").getValue();

var url="/webroot/decision/view/report?viewlet=GettingStarted.cpt&op=write&a="+a+"&b="+b;

//或者这个格式 var url="${servletURL}?viewlet=GettingStarted.cpt&op=write&a="+a+"&b="+b;

var url = FR.cjkEncode(url);

//窗体

var $iframe = $("<iframe id='inp' name='inp' width='100%' height='100%' scrolling='no' frameborder='0'>");

//将窗体的src属性设置为模板路径

$iframe.attr("src", url);

//窗体的属性

var o = {

    title: "对话框",    //标题

    width: 680,         //宽度,可以换成w/2,自适应

    height: 640,        //高度

    //closable:true,    //是否显示关闭按钮,默认true

    //confirm:true,     //是否添加确认取消按钮,默认false

    //draggable:true   //是否可拖动,默认true

};

//弹出窗体

FR.showDialog(o.title, o.width, o.height, $iframe, o);

最佳回答
0
yoggaLv6见习互助
发布于2025-10-16 13:58

FR.doHyperlinkByGet({

url:serverURL+servletURL+ "?viewlet=xxx/xxx/xxx.cpt&op=write",

title: "报表名称",

        target: "blank_fs" 

})

   &op修改预览模式,&op=write 填报,&op=view 数据分析

  • 4关注人数
  • 27浏览人数
  • 最后回答于:2025-10-16 13:58
    请选择关闭问题的原因
    确定 取消
    返回顶部