<configuration label="Calculate Areas"> <taskurl>http://SERVER/ArcGIS/rest/services/GP/viewer/GPServer/Calculate_Acres</taskurl> <layerorder></layerorder> </configuration>
What I'm trying to acheive is a way of automatically updating a field once a layer has been created or modified. Specifically, when a user creates a polygon (using the Edit widget) I want a field called "area_ac" to automatically populate with the area of that polygon in acres.Is there a way of doing this?I figured that a manual way of updating the "area_ac" field would be to create a very simple Geoprocessing service that uses the Calculate Field tool, and then use the Geoprocessing widget to run it.I tried setting up an xml config for the Geoprocessing widget, but I don't think it likes the fact that there are no inputs or outputs associated with the service. When I press the submit button on the widget I get an error:ProblemesriJobFailedFailed.Is it possible to run the Geoprocessing widget without inputs or outputs?GeoprocessingWidget_CalculateAreas.xml<configuration label="Calculate Areas"> <taskurl>http://SERVER/ArcGIS/rest/services/GP/viewer/GPServer/Calculate_Acres</taskurl> <layerorder></layerorder> </configuration>
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.