Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

BO Object Validator -Unable to set attribute

edited Mar 16, 2020 7:18PM in Visual Builder 2 comments

Summary

Unable to set attribute in object validator

Content

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  

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!