1560913654412615.cpt
1560913654423874.cpt
你发了几个。。。。
父报表按钮点击事件
window.form = this.options.form; //把参数界面的form赋值给全局变量
var $iframe = $("
$iframe.attr("src", "${servletURL}?viewlet=1560913654423874.cpt&op=write"); //jsson.cpt为以上所说的点击选择按钮时,引用js后弹出一个对话框,对话框中嵌入的下拉选项模板
var o = {
title : "请选择记录项",
width : 460,
height: 350
};
FR.showDialog(o.title, o.width, o.height, $iframe,o); //首先弹出对话框
子报表按钮点击事件
复选按钮组的控件名称为BOX
var b=contentPane.getWidgetsByName("BOX");
var a=b.getValue();
var form = window.parent.form; //拿取当前页面的父窗口(即获取参数界面的form)
form.getWidgetByName("p1").setValue(a); //给文本控件的格子(A2)赋值val
window.parent.FR.closeDialog(); //确定获取值后,关闭取消父窗口的对话框
window.parent.FR.destroyDialog();
同我上次给你发的网址
https://help.finereport.com/finereport8.0/doc-view-1030.html
9.0 中 JS 页面跳转 ${servletURL}?reportlet=WorkBook2.cpt ,在 10.0 中使用 FR.doHyperlinkByPost 进行 POST 传参可能会导致参数无法正常传递 ,需将 reportlet 改为 10.0 中的 viewlet 。
如果可以请采纳