Select to view content in your preferred language

Attribute Rules

217
0
05-26-2024 10:59 PM
ChenChen4
Occasional Contributor

I created an attribute rule for the address point layer where the APN field is populated from the Parcel layer APN field. It works as expected when I connect to the Enterprise Geodatabase and add pull the address point feature class directly from the EGDB.  We also have bulk published items from EGDB, so for each of the feature class stored in EGDB, we published a feature layer and a map layer to Portal.  The intersect attribute rule does not work if I edit against the feature layer instead of directly connect to EGDB. 

 I use FeatureSetByName in the rule because FeatureSetByPortalItem does not work:

var intersecting_field = "APN";
var intersecting_featset = FeatureSetByName($datastore, 'GIS.PARCEL', [intersecting_field], true);

 

I suspect it's because the $datastore is not recognized when I edit against the feature layer? 

Any suggestions?

Tags (1)
0 Kudos
0 Replies