Hi!
I have a point layer with the attirbute "location". Alongside this i have a polygon layer with the same field. When editing the point layer (e.g. making a new point) i would like the field location to be populated with the intersecting value from the polygon. From what i reckon this is doable in both pro and enterprise (ExB), which is what I would like. I have tried to follow instructions on how to use the attribute rules, but I get an arcade error every time. It does not seem like it's able to retrieve the information from the polygon. I tried using the instructions from this page: https://support.esri.com/en-us/knowledge-base/how-to-auto-populate-the-attribute-field-with-values-of-000031093?utm_source=chatgpt.com
Information about data:
Point layer
Name: Träd
Field name: Location
Polygon layer
Name: Fastighetsnummer
Field name: Locationname
Example of arcade code:
var intersectline = FeatureSetByName($datastore, "Fastighetsnummer")
for( var f in intersectline){
if(Intersects($feature, f)){
return f.Locationname}
}
--
Does anyone know what I am doing wrong? I am currently working in arcgis pro, but I will upload it to enterprise if I manage to find a working solution.
Best, Michaela