When editing an ArcGIS Online hosted feature layer within a web map or web app is there a way to automatically calculate a field upon creation of the feature? I am trying to automatically calculate the area (square feet) of a polygon after it is created.
Ben, this is not possible.
Shouldn't there be a SHAPE.AREA field within your feature service?
Yes, but the coordinate system is WGS 84 and the shape.area is square meters. I actually need to populate the square feet field which is a simple calculation but I would like to do it automatically.
Yeah, I was afraid of that. Thank you though Tim!
Ben, I am facing the same problem you are facing. Were you able to find a solution to this problem? I am having users drop a point on a map and I would like for it to auto field calculate text into a new field.
Mike,
in your case you might be able to work with a domain. It really depends on what you want to populate.
Tim
Tim, thanks for the quick reply. Unfortunately, a domain will not work because when the user drops in a point I want a new empty field to field calculate the name of that point (which will be unique) along with the data from another field. So once the point gets dropped the data from the other field will be combined with the name of the point that was just dropped and that will always be unique to every point.
in ArcGIS Online this is not possible, you can only do this in ArcGIS Desktop.
What would the syntax be to have it automatically field calculate a field in desktop? Maybe if I can have that syntax already placed in the empty field once a point is dropped the automatic field calculation will just happen.
In ArcGIS Desktop you would have to use the Attribute Assistant Add-In: Attribute Assistant | ArcGIS Solutions
But sadly this will not solve your issue, since this only works in ArcGIS Desktop.
i am searching for the same functionnality.
Possible programmatically in the front office without using esri tech. (i use jsp,javascript to pass sql transactions to the database)
Possible by creating trigger in the database.
but on the cloud i don't know.
well, it sounds like this is a feature esri should look into and enable. I will enter it into their idea page, if its not done already.
edit: alas! this is already implemented. See link here
https://community.esri.com/ideas/10796
Anyone here in 2021 please upvote idea supporting Attribute Rules in ArcGIS Online to enable this.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.