Select to view content in your preferred language

Global Arcade function for use in multiple attribute rules

395
1
11-18-2023 03:16 PM
Bud
by
Honored Contributor

Is there a way to create a global Arcade function, and then use that function in validation attribute rules in multiple feature classes/fields?

For example, create a single global function called isBlankShape where you pass in a shape value. The function checks to see if the shape is blank (null shape, nil geometry, or null geometry). I’d then create validation attribute rules on all feature classes in the geodatabase that would call the global function. If the result of the function call is false, then allow the edit. If the result is true, then don't allow the edit. 

That kind of thing is easy at the enterprise database level: create a custom function and triggers using PL/SQL.

I thought I saw an Arcade idea for this once, but I can't find it at the moment.

Related: Idea - Global Arcade functions

1 Reply
MikeMillerGIS
Esri Frequent Contributor

No, but we have discussed it.  Saw you logged the idea, adding link here for future ref - https://community.esri.com/t5/arcgis-pro-ideas/global-arcade-functions/idi-p/1352892