<?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: How can I load field values into an array using arcade expression? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-can-i-load-field-values-into-an-array-using/m-p/284466#M1821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this workd for me&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; features &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$datastore&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"polygons"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"ID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; NewID &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Max&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;features&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"ID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; NewID&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 13:46:00 GMT</pubDate>
    <dc:creator>OrrGvili</dc:creator>
    <dc:date>2021-12-11T13:46:00Z</dc:date>
    <item>
      <title>How can I load field values into an array using arcade expression?</title>
      <link>https://community.esri.com/t5/developers-questions/how-can-i-load-field-values-into-an-array-using/m-p/284463#M1818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am exploring Add Attribute Rule in ArcGIS Pro 2.1-beta.1.&amp;nbsp; I want to look at all values in an ID field, take the max value, and add 1. This way I can set up a rule that will always add the sequential number on INSERT.&amp;nbsp; How can I create an array of all existing values in an ID field? Is this possible with an arcade expression?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 22:28:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-can-i-load-field-values-into-an-array-using/m-p/284463#M1818</guid>
      <dc:creator>EricPeña</dc:creator>
      <dc:date>2017-11-10T22:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I load field values into an array using arcade expression?</title>
      <link>https://community.esri.com/t5/developers-questions/how-can-i-load-field-values-into-an-array-using/m-p/284464#M1819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has this been answered anywhere?&amp;nbsp; I'm new to Arcade expressions.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2020 16:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-can-i-load-field-values-into-an-array-using/m-p/284464#M1819</guid>
      <dc:creator>DanielWebb</dc:creator>
      <dc:date>2020-06-04T16:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I load field values into an array using arcade expression?</title>
      <link>https://community.esri.com/t5/developers-questions/how-can-i-load-field-values-into-an-array-using/m-p/284465#M1820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/create-database-sequence.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/create-database-sequence.htm"&gt;Create Database Sequence—Data Management toolbox | Documentation&lt;/A&gt;&amp;nbsp;.&amp;nbsp; Sequences do the dirty work for you at the database level, all you do is create a &lt;A href="https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/attribute-rule-script-expression.htm"&gt;simple attribute rule&lt;/A&gt; to use them at the feature class level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2020 17:07:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-can-i-load-field-values-into-an-array-using/m-p/284465#M1820</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-06-04T17:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I load field values into an array using arcade expression?</title>
      <link>https://community.esri.com/t5/developers-questions/how-can-i-load-field-values-into-an-array-using/m-p/284466#M1821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this workd for me&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; features &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$datastore&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"polygons"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"ID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; NewID &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Max&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;features&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"ID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; NewID&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:46:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-can-i-load-field-values-into-an-array-using/m-p/284466#M1821</guid>
      <dc:creator>OrrGvili</dc:creator>
      <dc:date>2021-12-11T13:46:00Z</dc:date>
    </item>
  </channel>
</rss>

