<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Database Trigger / Simple Geoprocessing Widget - Calculate Fields in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/database-trigger-simple-geoprocessing-widget/m-p/152336#M4861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kwgis,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you find a method to run the calculate field tool on one record via a geoprocessing service?&amp;nbsp; I would like to build a mobile app that takes user inputs of soil characteristics and then auto populates a field as to the soil capability class and subclass.&amp;nbsp; Any guides or instructions that you have found to be helpful would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scott&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;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.&lt;BR /&gt;&lt;BR /&gt;Is there a way of doing this?&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Problem&lt;BR /&gt;esriJobFailed&lt;BR /&gt;Failed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Is it possible to run the Geoprocessing widget without inputs or outputs?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;GeoprocessingWidget_CalculateAreas.xml&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;configuration label="Calculate Areas"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;taskurl&amp;gt;http://SERVER/ArcGIS/rest/services/GP/viewer/GPServer/Calculate_Acres&amp;lt;/taskurl&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;layerorder&amp;gt;&amp;lt;/layerorder&amp;gt;
&amp;lt;/configuration&amp;gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 08:10:05 GMT</pubDate>
    <dc:creator>Scottschrader</dc:creator>
    <dc:date>2021-12-11T08:10:05Z</dc:date>
    <item>
      <title>Database Trigger / Simple Geoprocessing Widget - Calculate Fields</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/database-trigger-simple-geoprocessing-widget/m-p/152335#M4860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way of doing this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Problem&lt;BR /&gt;esriJobFailed&lt;BR /&gt;Failed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to run the Geoprocessing widget without inputs or outputs?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;GeoprocessingWidget_CalculateAreas.xml&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;configuration label="Calculate Areas"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;taskurl&amp;gt;http://SERVER/ArcGIS/rest/services/GP/viewer/GPServer/Calculate_Acres&amp;lt;/taskurl&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;layerorder&amp;gt;&amp;lt;/layerorder&amp;gt;
&amp;lt;/configuration&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 13:07:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/database-trigger-simple-geoprocessing-widget/m-p/152335#M4860</guid>
      <dc:creator>KarlWilson</dc:creator>
      <dc:date>2012-02-01T13:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Database Trigger / Simple Geoprocessing Widget - Calculate Fields</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/database-trigger-simple-geoprocessing-widget/m-p/152336#M4861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kwgis,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you find a method to run the calculate field tool on one record via a geoprocessing service?&amp;nbsp; I would like to build a mobile app that takes user inputs of soil characteristics and then auto populates a field as to the soil capability class and subclass.&amp;nbsp; Any guides or instructions that you have found to be helpful would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scott&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;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.&lt;BR /&gt;&lt;BR /&gt;Is there a way of doing this?&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Problem&lt;BR /&gt;esriJobFailed&lt;BR /&gt;Failed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Is it possible to run the Geoprocessing widget without inputs or outputs?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;GeoprocessingWidget_CalculateAreas.xml&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;configuration label="Calculate Areas"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;taskurl&amp;gt;http://SERVER/ArcGIS/rest/services/GP/viewer/GPServer/Calculate_Acres&amp;lt;/taskurl&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;layerorder&amp;gt;&amp;lt;/layerorder&amp;gt;
&amp;lt;/configuration&amp;gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:10:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/database-trigger-simple-geoprocessing-widget/m-p/152336#M4861</guid>
      <dc:creator>Scottschrader</dc:creator>
      <dc:date>2021-12-11T08:10:05Z</dc:date>
    </item>
  </channel>
</rss>

