<?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 Using Arcade with JavaScript AttributeEditor in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-arcade-with-javascript-attributeeditor/m-p/719796#M66808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have an application that uses the JavaScript API 3.x and a web map with &amp;nbsp;hosted feature layers. When a new feature is created, I need to auto-increment a field in&amp;nbsp;that&amp;nbsp;feature to the maximum value for all features in the feature layer. I was hoping to use an Arcade expression like:&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&amp;nbsp;"Max($layer, 'fieldName')"&lt;/P&gt;&lt;P&gt;to get a value when creating a new feature. We use the Attribute Editor for creating features. We get the fields from the web map-- so our &amp;nbsp;customers can customize the fields information in the Attribute Editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I've read online, Arcade Expression can be used with the PopupTemplate. Is there a way to use the Attribute Editor with an Arcade Expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We may be able to set the value from the web map if the above isn't possible. The issue with that approach is we would have to modify the web map for multiple customers. Any suggestions are welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Mar 2019 17:27:41 GMT</pubDate>
    <dc:creator>ChrisSeabrooke1</dc:creator>
    <dc:date>2019-03-19T17:27:41Z</dc:date>
    <item>
      <title>Using Arcade with JavaScript AttributeEditor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-arcade-with-javascript-attributeeditor/m-p/719796#M66808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have an application that uses the JavaScript API 3.x and a web map with &amp;nbsp;hosted feature layers. When a new feature is created, I need to auto-increment a field in&amp;nbsp;that&amp;nbsp;feature to the maximum value for all features in the feature layer. I was hoping to use an Arcade expression like:&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&amp;nbsp;"Max($layer, 'fieldName')"&lt;/P&gt;&lt;P&gt;to get a value when creating a new feature. We use the Attribute Editor for creating features. We get the fields from the web map-- so our &amp;nbsp;customers can customize the fields information in the Attribute Editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I've read online, Arcade Expression can be used with the PopupTemplate. Is there a way to use the Attribute Editor with an Arcade Expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We may be able to set the value from the web map if the above isn't possible. The issue with that approach is we would have to modify the web map for multiple customers. Any suggestions are welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2019 17:27:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-arcade-with-javascript-attributeeditor/m-p/719796#M66808</guid>
      <dc:creator>ChrisSeabrooke1</dc:creator>
      <dc:date>2019-03-19T17:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade with JavaScript AttributeEditor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-arcade-with-javascript-attributeeditor/m-p/719797#M66809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One approach would be to use applyEdits to update that attribute when a new feature is created. This sample in the documentation shows how to listen for draw-end to determine when a new feature is added and use applyEdits to update the attributes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/ed_feature_creation.html" title="https://developers.arcgis.com/javascript/3/jssamples/ed_feature_creation.html"&gt;Edit without editor widget | ArcGIS API for JavaScript 3.27&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2019 20:25:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-arcade-with-javascript-attributeeditor/m-p/719797#M66809</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2019-03-19T20:25:57Z</dc:date>
    </item>
  </channel>
</rss>

