Select to view content in your preferred language

Using $map in Attribute rule calculaton

1211
2
07-23-2021 02:33 PM
Status: Open
YinghongLi1
Frequent Contributor

Currently,  only $datastore is accessible to Attribute Rule immediate calculation, which means the spatial operation, e.g. intersect, can't be performed on the feature layer in another database. 

In our case,  we have editing database and browse database.  The browse database provides reference data to the editing process.  We need to do spatial query to the layers from the browse database.  Since the current global variables do not allow to access layers from other database,  we have to write code using C# and SDK,  which needs a programmer to do the job.

The best solution should be that we can use the layers in a map to do spatial operation in attribute rule.

Thanks...

2 Comments
SarahHartholt

Agreed! I have been working on creating a road map with a street index grid and would like to implement an attribute rule that updates a table of grid index values when a new road segment is added to the roads feature class. Because the roads feature class is stored in SDE, and my grid polygon feature class is stored in a database in my ArcGIS Pro project, I am not able to automate this process.

I would also like to see some more info in the error messages i.e. rather than an Invalid expression Object not found $map error, please let us know that object $map cannot currently be used in the attribute rule profile

SarahHartholt_0-1641828216451.png

 

justin-mpls

I agree, no access to $map for calculation rules is a very unfortunate limitation.  In many cases, it would be impractical if not impossible to have all the data you might wish to reference while editing reside within the same database as the features being edited.