<?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: Arcade: create an array of field values in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/1199531#M58189</link>
    <description>&lt;P&gt;To build on this, without using IndexOf on a fs, can we return the position of the returned value in the sorted not-array?&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2022 18:04:17 GMT</pubDate>
    <dc:creator>Jesse_WI_DNR</dc:creator>
    <dc:date>2022-08-04T18:04:17Z</dc:date>
    <item>
      <title>Arcade: create an array of field values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150029#M6642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the subject line suggests, I would like to create an array of all the values of a given field in a table.&amp;nbsp; The end goal is to create an attribute rule that can check a string against the array and make sure the string is in fact part of the array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In arcpy, I would use the da.SearchCursor and append the values of the field to a list.&amp;nbsp; How does one accomplish the same basic operation in Arcade?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I never know what Geonet space to post Arcade questions to, so I'm tossing this into the ArcGIS Pro space...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2020 19:59:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150029#M6642</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-06-04T19:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: create an array of field values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150030#M6643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/arcade/function-reference/data_functions/#distinct" title="https://developers.arcgis.com/arcade/function-reference/data_functions/#distinct"&gt;Distinct.... in Data Functions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;probably with a bunch of other fluff around it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2020 21:24:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150030#M6643</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-06-04T21:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: create an array of field values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150031#M6644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looked at that; in theory, each of the specific values in the table are already distinct; no repeats.&amp;nbsp; I'm having a hard time just understanding the logic in Arcade since I've never even dabbled in java script.&amp;nbsp; For example, I don't even understand how arcade knows what the value is of &lt;EM&gt;$layer&lt;/EM&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Distinct($layer, 'Status')&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you ever want to get at all my personal info, (social security # banks etc) my universal password is cantwaittoretire&amp;nbsp; ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2020 21:44:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150031#M6644</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-06-04T21:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: create an array of field values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150032#M6645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't rush it... you will be split in 2 &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2020 21:50:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150032#M6645</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-06-04T21:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: create an array of field values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150033#M6646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hehehe... closer to 1.5, but who's counting?!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2020 22:04:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150033#M6646</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-06-04T22:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: create an array of field values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150034#M6647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better call in &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌ He might be able fill in my suggestion.&lt;/P&gt;&lt;P&gt;in the meantime&amp;nbsp;&lt;/P&gt;&lt;P&gt;np.unique(arcpy.FeatureClassToNumPyArray(fc, fld))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2020 23:02:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150034#M6647</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-06-04T23:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: create an array of field values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150035#M6648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/4422" target="_blank"&gt;Joe Borgione&lt;/A&gt;&amp;nbsp; and&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/405782" target="_blank"&gt;Dan Patterson&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see you are having fun with Arcade and Python. Can't wait to join the party&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before getting in to what you can probably do with Arcade in the attribute rule, I have a question... If you want to assure that a value is within a list of possibilities, wouldn't that be solved by using a domain? I am sure that it can't be that simple, so I will continue with the Arcade fun part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Joe was mentioning earlier&amp;nbsp;of using the Distinct function in Arcade is correct. The example however, as you noticed, is using $layer, and $layer is not available in the attribute rule profiles. So, I am mentioning profiles and that is where a lot of the fun questions start with: depending the profile (where you want to execute the Arcade expression) you have a set of functions that you can use and a set of globals (the $ thingies) at your disposal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attribute rules are executed at the database level. This is important since it defines what $ thingies are available. At a database level when an attribute rules is triggered, it has no knowledge of the map a layer might be participating in. So we don't have the $map and we algo wont have the $layer (since a layer only exists in a map). What we do have is the current $feature (and the $originalFeature which provides a lot of fun too) and the $datastore.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I normally do is I go to the Arcade playground&amp;nbsp;(a place where you can play with Arcade and have fun or a huge headache):&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/arcade/playground/" title="https://developers.arcgis.com/arcade/playground/" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS Arcade | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;. There you can select the profile of where you want to use Arcade:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/495498_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;Not sure if you want to create a Calculation AR or a Constraint AR (raise error during edit) or Validation AR (for example for batch validation). The globals and functions will not be very different but the return value will be. When you select the profile you will see the globals available:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/495501_pastedImage_6.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to have access to the "layer" using the $datastore. The datastore is a FeatureSetCollection and you will have to indicate which FeatureSet you want to execute the rule&amp;nbsp;on. For instance:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&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;"Name of your FeatureSet in the datastore"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In combination with the Distinct function is will be this:&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; fs &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN class="punctuation 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;"Name of your FeatureSet in the datastore"&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;"FieldName"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you will have a featureset which you can use to check if a value is in the list of values. You will still have to do a loop to see if the value is&amp;nbsp;any record of the FeatureSet&amp;nbsp;since you cannot use things like IndexOf on this since "fs" is not an array but a FeatureSet. So, probably more eficiently would be doing something like this:&lt;/P&gt;&lt;P&gt;&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; searchValue &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1023&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// $feature.FieldName;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; sql &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"NGHBRHDCD = @searchValue"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Count&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Filter&lt;/SPAN&gt;&lt;SPAN class="punctuation 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;"Tax_Parcels"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sql&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&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;P&gt;&lt;/P&gt;&lt;P&gt;You read out the value you want to test and you set up a sql, which you use to filter the FeatureSet from the datastore and do a count on the result. If that is more than 0 the value exists (returns true) and if not it will return false.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:06:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150035#M6648</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T08:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: create an array of field values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150036#M6649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt; I am surmising that the language remains proprietary? &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&amp;nbsp;or is there a GitHub page I haven't found yet?&amp;nbsp; "Distinct" looks like "unique", unfortunate that they have limited the choice of language in places of the Pro ecosystem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 00:56:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150036#M6649</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-06-05T00:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: create an array of field values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150037#M6650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your detailed response &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌.&amp;nbsp; With respect to your question regarding domains, they have a significant limitation in an enterprise geodatabase environment.&amp;nbsp; Only the domain owner can update them.&amp;nbsp; I am currently working on an implemention of ESRI's Address Data Management Solution.&amp;nbsp; One of the tasks in the solution has you update the master street name file and then use that file to create the domain.&amp;nbsp; That approach works, sort of.&amp;nbsp; In addition to the domain edit limitations, I find trying to pick a valid street name&amp;nbsp;from a mile long list&amp;nbsp;impractical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thought process is if all users can edit the master street name file I'd like to run a verification against a new centerline street geometry insert such that the name entered on the new street is already in the master street name file. If it is, great, if not return some sort of warning to the effect of 'Hey there, your new street name isn't in the master streets file' which could mean the new street name was misspelled or simply has not been added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At any rate, your suggestions are exactly what I was hoping to get, and I'll get after it as soon as I get back to the office in the morning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 01:43:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150037#M6650</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-06-05T01:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: create an array of field values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150038#M6651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is another solution provided by &lt;A href="https://community.esri.com/migrated-users/52415" target="_blank"&gt;Chris Fox&lt;/A&gt;‌ that he specifically prototyped for the Address Data Management Solution as a constraint type attribute rule.&amp;nbsp; I find this approach very interesting; there is a contrast in what I follow as the 'traditional' python mindset and what Chris offers here in Arcade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;// This constraint rule will ensure the full name exist in the master road name table

// Get the full name of the road. If it is null return the fullname

var fullname = $feature.fullname;
if (IsEmpty(fullname)) return fullname;

// Search the master road name table for a row matching the fullname.
// If there is no matching record raise an error preventing the edit

var masterStreetNames = Filter(FeatureSetByName($datastore, "MasterRoadName"), "fullname = '" + fullname + "'");
if (Count(masterStreetNames) == 0) {
                return {
                        "errorMessage": "Full Road Name is invalid, must be defined in the Master Road Name table."
                }
}
return true;
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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 08:06:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150038#M6651</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-12-11T08:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: create an array of field values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150039#M6652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/4422"&gt;Joe Borgione&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the additional explanation on your use case.&amp;nbsp;You are right, scrolling through a long list of street names&amp;nbsp;is not very user-friendly. If you would have the area subdivided in areas, you could use &lt;A href="https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/contingent-values.htm"&gt;contingent values&lt;/A&gt; to reduce the list of streets based on the area selected by the user.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 14:06:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150039#M6652</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-06-05T14:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: create an array of field values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150040#M6653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/jborgion"&gt;jborgion&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;He is using the same approach as I mentioned at the end of my initial answer (check for the count after using a filter), although his rule is properly formatted as a validation rule.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 14:08:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150040#M6653</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-06-05T14:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: create an array of field values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150041#M6654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌; yes, I would/could be able to subdivide the street names by our townwhips.&amp;nbsp; I'll take a look at contingent values as suggested. Updating domains in the egdb are still an issue, but I haven't yet decided how I'm going to implement the solution.&amp;nbsp; I could edit a check out replica in a file geodatabase which could then use the domain there, and&amp;nbsp;not worry about a domain in the egdb...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 14:21:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150041#M6654</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-06-05T14:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: create an array of field values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150042#M6655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/405782"&gt;Dan Patterson&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the language is kind of proprietary, although it leans heavily on a subset of JavaScript. It&amp;nbsp;really lives in the ArcGIS ecosystem rather than just in the Pro ecosystem.&amp;nbsp;I can imagine that not being able to use Python at the same places you can use Arcade limits the possibilities, but&amp;nbsp;I understand that one of the reasons for introducing Arcade was being able to have something "light" yet powerful expression language that could be used across the platform no matter&amp;nbsp;if you use it in desktop, web or inside mobile apps. There is still a long way to go to get there achieving the same support no matter what device or app you use, but that is where it is heading and from what I understand and Python would not have been the best way to achieve that. But this is my interpretation and not an official statement.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 23:24:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150042#M6655</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-06-05T23:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: create an array of field values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150043#M6656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌ I was wondering why, since a lot of people I know use python (and imports) for web stuff.&amp;nbsp; Perhaps what they do is different than what esri&amp;nbsp;does and the curly bracket languages seem to dominate web-stuff.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 23:45:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/150043#M6656</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-06-05T23:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: create an array of field values</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/1199531#M58189</link>
      <description>&lt;P&gt;To build on this, without using IndexOf on a fs, can we return the position of the returned value in the sorted not-array?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 18:04:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-create-an-array-of-field-values/m-p/1199531#M58189</guid>
      <dc:creator>Jesse_WI_DNR</dc:creator>
      <dc:date>2022-08-04T18:04:17Z</dc:date>
    </item>
  </channel>
</rss>

