<?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 Edit a feature and automatically calculate a value in a featureclass based on a dropdown/user select in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-a-feature-and-automatically-calculate-a-value/m-p/1171255#M77238</link>
    <description>&lt;DIV class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Is there a way to calculate attribute values of a hosted feature class based on a user selected value?&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Example:&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;A user is editing a parcel or polygon of land use in a web app (widget) and I want the user to select a "value" from a list (type or value or something) or based on some other field (area maybe) in the attribute table based on multiplying/adding a pre-set amount.&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;So, if a user creates a 2 acre parcel and it's agriculture, we multiply that by 3.2 and the value is: 6.4.&amp;nbsp; Whereas if that 2 acre parcel is business, it is multiplied&amp;nbsp;by 1.5, resulting in a value of 3.&amp;nbsp; So, we'd have two values in the&amp;nbsp;attribute table, the created value&amp;nbsp;and the updated/adjusted value.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;I know the attribute rules component of Pro can do some of this, but that is not available&amp;nbsp;in the web.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 05 May 2022 19:24:24 GMT</pubDate>
    <dc:creator>WilliamShuart</dc:creator>
    <dc:date>2022-05-05T19:24:24Z</dc:date>
    <item>
      <title>Edit a feature and automatically calculate a value in a featureclass based on a dropdown/user select</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-a-feature-and-automatically-calculate-a-value/m-p/1171255#M77238</link>
      <description>&lt;DIV class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Is there a way to calculate attribute values of a hosted feature class based on a user selected value?&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Example:&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;A user is editing a parcel or polygon of land use in a web app (widget) and I want the user to select a "value" from a list (type or value or something) or based on some other field (area maybe) in the attribute table based on multiplying/adding a pre-set amount.&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;So, if a user creates a 2 acre parcel and it's agriculture, we multiply that by 3.2 and the value is: 6.4.&amp;nbsp; Whereas if that 2 acre parcel is business, it is multiplied&amp;nbsp;by 1.5, resulting in a value of 3.&amp;nbsp; So, we'd have two values in the&amp;nbsp;attribute table, the created value&amp;nbsp;and the updated/adjusted value.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;I know the attribute rules component of Pro can do some of this, but that is not available&amp;nbsp;in the web.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 May 2022 19:24:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-a-feature-and-automatically-calculate-a-value/m-p/1171255#M77238</guid>
      <dc:creator>WilliamShuart</dc:creator>
      <dc:date>2022-05-05T19:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Edit a feature and automatically calculate a value in a featureclass based on a dropdown/user select</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-a-feature-and-automatically-calculate-a-value/m-p/1171712#M77246</link>
      <description>&lt;P&gt;HI there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;At 4.23, we added a support for contingent attribute values in FeatureForm:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/release-notes/#featureform" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/release-notes/#featureform&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You should be able to use this without having write a code to keep the integrity of your data.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 22:08:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-a-feature-and-automatically-calculate-a-value/m-p/1171712#M77246</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-05-06T22:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Edit a feature and automatically calculate a value in a featureclass based on a dropdown/user select</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-a-feature-and-automatically-calculate-a-value/m-p/1172258#M77252</link>
      <description>&lt;P&gt;Is there a sample that you can point me to?&amp;nbsp; Trying to figure out how the Arcade component would fit into this.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my example:&amp;nbsp; A user digitizes a polygon, selects a domain/subtype and then the arcade calculation updates a different field based on math/equation that is applied when the subtype is selected.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 01:04:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-a-feature-and-automatically-calculate-a-value/m-p/1172258#M77252</guid>
      <dc:creator>WilliamShuart</dc:creator>
      <dc:date>2022-05-10T01:04:52Z</dc:date>
    </item>
  </channel>
</rss>

