Select to view content in your preferred language

Change field of existing attribute rule

1470
4
03-01-2022 11:16 AM
Status: Open
Bud
by
Esteemed Contributor

When an attribute rules is saved, it's Field value becomes read-only:

Bud_1-1646162135375.png


It would be helpful if the field could be changed — even for existing attribute rules.

Tags (2)
4 Comments
JohannesLindner

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

AndrewQuee

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.

RhettZufelt

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_

 

Bud
by

It would also help if we could change the name of an attribute rule after it's been saved.

Bud_0-1650901398240.png