单元格的数据是拓展下来的,根据数量/总数=百分比,能不能通过,标签,自定以实现?
最终结果:
function(){
var a = this.value;
var b = _g().getWidgetByName("txtNum").getValue();
var c =(a / b) * 100
return this.name + " " + c.toFixed(2) + "%" ;} 自己在标签,定义去改就好了
参考提示点获取单元格数据 https://help.fanruan.com/finereport/doc-view-4466.html
参考楼上的方法,决策报表单元格接口换一下就可以了:https://help.fanruan.com/finereport/doc-view-4305.html
_g().getWidgetByName('report0').getCellValue("A1");