https://help.fanruan.com/finereport/doc-view-4061.html 按这个帮助文档设置,没成功 var id=this.getValue(); //获取当前控件值 var gc=FR.remoteEvaluate("value('ds1','company','uuid','"+id+"')"); var jyhgzh=FR.remoteEvaluate("value('ds1','Certificatenum','uuid','"+id+"')"); var cpmc=FR.remoteEvaluate("value('ds1','product','uuid','"+id+"')"); var cpgg=FR.remoteEvaluate("value('ds1','Spec','uuid','"+id+"')"); var xb=FR.remoteEvaluate("value('ds1','line','uuid','"+id+"')"); //根据产品ID去ds1数据集中获取其他字段的值 var row=FR.cellStr2ColumnRow(this.options.location).row; //获取当前行号 _g().setCellValue(0,6,2,"company"); _g().setCellValue(0,8,2,"Certificatenum"); _g().setCellValue(0,10,2,"product"); _g().setCellValue(0,12,2,"Spec"); _g().setCellValue(0,14,2,"line"); //给当前行其他单元格赋值 |