var widgets=contentPane.getWidgetsByName("bt");
contentPane.setCellValue(17,0,'');
var b = contentPane.getCellValue(17,0);
//var a = contentPane.getCellValue(col+1,row);
for(var i=0;i<widgets.length;i++){
var cr=FR.cellStr2ColumnRow(widgets[i].options.location);
var a = contentPane.getCellValue(cr.col+1,cr.row);
if(widgets[i].getValue()==true){
if(b == null || b == undefined || b == ''){
b = a ;
//alert(cr.row);
}else{
b = b+","+a;
//alert(cr.row);
}
}
}
contentPane.setCellValue(17,0,b);
思路:将选中行对应所需值拼接起来找个单元格存放,参数就等于这个单元格的值,点击超链后再用split()将字符串拆分扩展显示