
跟踪代码后得知,是类PBARuleExpressionActionValue的methodName出现了问题
str methodname()
{
return ( this.parmnameRecId() ? enum2str(PBARuleValueRelation) : '')+
PBARuleExpressionActionValue::methodnameParm(PBAVar,PBARuleArrayIdx,PBARuleActionType) +
(this.parmnameRecId() ? PBARuleChecker::methodname(this.parmnameRecId()) : '');
}"公式Table_0_false5637144582",由于在X++中函数名中不能出现汉字,因为汉字并不是合法的标识符的组成元素,于是就出现了不能在脚本中使用此符号的错误。
将该函数更改为如下代码即可:
str methodname()
{
SysDictEnum sysDictEnum = new SysDictEnum(EnumNum(PBARuleValueRelation));
return ( this.parmnameRecId() ? sysDictEnum.value2Symbol(PBARuleValueRelation) : '')+
PBARuleExpressionActionValue::methodnameParm(PBAVar,PBARuleArrayIdx,PBARuleActionType) +
(this.parmnameRecId() ? PBARuleChecker::methodname(this.parmnameRecId()) : '');
}
