Commit 7b769b8d by raojiaguan

获取子表行数公式

parent 65bea5f5
// 获取当前子表的行数的公式
export default {
execute:function(){
console.log("获取当前子表的行数的公式");
let tableName = arguments[0][1].StaticValue
let count ;
if(arguments[1].getSubData(tableName)){
let subTableValue = arguments[1].getSubData(tableName)
count = subTableValue.length
}else {
return "请检查配置,找不到配置中的子表"
}
return count;
},
getResultType:function(){
return FMR.ConstDataTypes.General;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment