BO Object Validator -Unable to set attribute
Summary
Unable to set attribute in object validatorContent
I'm try to set the value of one of the fields in the object validator, based the value of another field, but I'm getting the below mentioned error.
Below is the code in the validator
if (test1 == "123"){
reftest = "234"
}
test1 and reftest are attributes of the BO
and the error message is
Exception in expression "sitedef.oracle.ramp.dynamic.model.entity.Test" validation rule "Validation_Rule_0" : oracle.jbo.InvalidOperException Expression validator does not allow setting a value to source attribute:reftest.<br/>
at "sitedef.oracle.ramp.dynamic.model.entity.Test" validation rule "Validation_Rule_0" line 2
Tagged:
0