自定义JS错误 : Cannot read property 'setValue' of undefined
如上为报错
var zybck = contentPane.getWidgetByCell(FR.columnRow2CellStr({col:41,row: h-1})); zybck.setValue(null);
如上为代码
var location = this.options.location; //获取当前控件的位置
var cr = FR.cellStr2ColumnRow(location);
var col = cr.col; //列号
var ro = cr.row; //行号
var zybck = contentPane.getWidgetByCell(FR.columnRow2CellStr({
col: col,
row: ro
}));
var aa = zybck.getValue();
contentPane.setCellValue(0, col, ro, null);
或者参考这个文档:
http://help.finereport.com/doc-view-1207.html