I want to update attribute on a layer (area) based on the intersection with another layer (point).
Suppose I have Layer PointA. I draw an object on Layer AreaB. The intersected objects on PointA by AreaB are then calculated and the value is put into a colomn on Layer AreaB, automatically if possible.
I am running Arcgis Enterprise 11.0 with Postgresql SDE 13.12
How to achieve this using Smart Editor Widget ?
Thanks
Hi @yockee
You can calculate attribute values based on other attributes from intersecting features. Here's a video example of this with the configuration details: Get smart about editing
You cannot do any kind of geometry calculations.
If you'd like to do more advanced calculations, I'd recommend moving to using Forms and Experience Builder. Check out this blog: From the Smart Editor to Smart Forms
Hi @AlixVezina ,
I tried it but can not find the related Feature Service that I want to count from. Here I am trying to set the Smart Form for feature service AreaA to count the underlying feature service (or map service) PointB. There are no attributes for PointB that are listed. They are not detected. Why ?
There's an example in this blog: Go Beyond the Smart Editor using Smart Forms
The first example for Calculate statistics is to count features.
Here's the sample code you can modify:
// Define the source layer to intersect (replace layer name "Addresses" below)
var sourceLayer = FeatureSetByName($map, "Addresses")
// Count the number of intersecting features from the source layer
var countFeatures = Count(Intersects(sourceLayer,$feature))
// Return the value (number)
return countFeatures