如何获取表格中下拉控件的值(选下拉列表发生化时,控件值也跟着变换),不是参数版面的下拉控件,是表格中的。
设置下拉框的编辑后事件
var a = this.getValue()
还可以添加一个参数面板的控件
在下拉框的编辑后事件中添加js,把 a的值赋值给参数面板的控件,之后需要的时候就可以直接获取参数面板的控件的值
参考https://help.fanruan.com/finereport/doc-view-608.html
var location = this.options.location; //获取当前控件的位置
var cr = FR.cellStr2ColumnRow(location);
var col = cr.col; //列号
var ro = cr.row; //行号
var a=contentPane.getCellValue(0,col,ro);//获取当前单元格值
https://help.fanruan.com/finereport/doc-view-853.html?source=4