When an attribute rules is saved, it's Field value becomes read-only:
It would be helpful if the field could be changed — even for existing attribute rules.
That would be good, yes.
As a workaround, you can leave the field empty and return a dictionary instead of a single value:
var len = Length($feature)
//return len
return {
// in the result object, you can change the geometry and attributes of the $feature
"result": {
"attributes": {"Arcade_Shape_Length": len}
}
}
For the full kyeyword documentation, see Attribute rule dictionary keywords—ArcGIS Pro | Documentation
This also applies to the 'editable' feature for calculation rules. If you did not want to let users edit this field (say you are populating a DB sequence by calculation) and forgot to untick it, or if you change your mind later about editability, you cannot toggle this option. (Greyed out as shown)
Your only recourse then is to delete the entire rule and recreate it.
It appears as if you can copy/paste the rule, modify it, then delete the original.
Still a pain. Can see the box right there, why can't we change it.....
R_
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.