<?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 Return list from attributes using Arcade in Attribute Rule in Pro in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/return-list-from-attributes-using-arcade-in/m-p/1062960#M41439</link>
    <description>&lt;P&gt;I'm having issue (not knowing proper Arcade scripting - still learning) trying to return a list of values from a table I am reading in for one of the Attribute Rules. I've done some searching and came up with the expression below.&amp;nbsp;Maybe I'm going at it all wrong. Still learning Arcade.&lt;/P&gt;&lt;P&gt;The table is in the same file geodatabase as my feature class where the AttributeRule is being used.&lt;/P&gt;&lt;P&gt;The table (PROPCODE) has two fields (ParcelID, AssessCode):&lt;/P&gt;&lt;P&gt;PROPCODE&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;ParcelID&lt;/TD&gt;&lt;TD width="50%"&gt;AssessCode&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;100&lt;/TD&gt;&lt;TD width="50%"&gt;301&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;100&lt;/TD&gt;&lt;TD width="50%"&gt;405&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;100&lt;/TD&gt;&lt;TD width="50%"&gt;305&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;200&lt;/TD&gt;&lt;TD width="50%"&gt;301&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;300&lt;/TD&gt;&lt;TD width="50%"&gt;375&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;300&lt;/TD&gt;&lt;TD width="50%"&gt;385&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;400&lt;/TD&gt;&lt;TD width="50%"&gt;301&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do a Calculation with Attribute Rule where if the user digitizes on ParcelID 100, the AR would kick in and read the above table and return &lt;STRONG&gt;301,305,405&lt;/STRONG&gt;. My issue is that it's only returning &lt;STRONG&gt;301,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here is the code I am using:&lt;/P&gt;&lt;P&gt;var ExtTable = FeatureSetByName($datastore, 'PROPCODE',['ParcelID','AssessCode'],false);&lt;/P&gt;&lt;P&gt;for (var Parcel in ExtTable) {&lt;BR /&gt;if ($feature.CITY_PIN == Parcel.PIN) {&amp;nbsp; &amp;nbsp;//$feature.CITY_PIN is the current record. in the example it is 100.&lt;BR /&gt;var ListIt = Concatenate(Parcel.AssessCode, ',');&lt;BR /&gt;return ListIt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;return '000'; //test just check if it returns anything&lt;/P&gt;&lt;P&gt;Any help would be appreciated. Let me know if additional info would help. Thanks!&lt;/P&gt;&lt;P&gt;Running ArcGIS Pro 2.6.3.&lt;/P&gt;</description>
    <pubDate>Fri, 28 May 2021 16:52:55 GMT</pubDate>
    <dc:creator>HungGiang</dc:creator>
    <dc:date>2021-05-28T16:52:55Z</dc:date>
    <item>
      <title>Return list from attributes using Arcade in Attribute Rule in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/return-list-from-attributes-using-arcade-in/m-p/1062960#M41439</link>
      <description>&lt;P&gt;I'm having issue (not knowing proper Arcade scripting - still learning) trying to return a list of values from a table I am reading in for one of the Attribute Rules. I've done some searching and came up with the expression below.&amp;nbsp;Maybe I'm going at it all wrong. Still learning Arcade.&lt;/P&gt;&lt;P&gt;The table is in the same file geodatabase as my feature class where the AttributeRule is being used.&lt;/P&gt;&lt;P&gt;The table (PROPCODE) has two fields (ParcelID, AssessCode):&lt;/P&gt;&lt;P&gt;PROPCODE&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;ParcelID&lt;/TD&gt;&lt;TD width="50%"&gt;AssessCode&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;100&lt;/TD&gt;&lt;TD width="50%"&gt;301&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;100&lt;/TD&gt;&lt;TD width="50%"&gt;405&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;100&lt;/TD&gt;&lt;TD width="50%"&gt;305&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;200&lt;/TD&gt;&lt;TD width="50%"&gt;301&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;300&lt;/TD&gt;&lt;TD width="50%"&gt;375&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;300&lt;/TD&gt;&lt;TD width="50%"&gt;385&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;400&lt;/TD&gt;&lt;TD width="50%"&gt;301&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do a Calculation with Attribute Rule where if the user digitizes on ParcelID 100, the AR would kick in and read the above table and return &lt;STRONG&gt;301,305,405&lt;/STRONG&gt;. My issue is that it's only returning &lt;STRONG&gt;301,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here is the code I am using:&lt;/P&gt;&lt;P&gt;var ExtTable = FeatureSetByName($datastore, 'PROPCODE',['ParcelID','AssessCode'],false);&lt;/P&gt;&lt;P&gt;for (var Parcel in ExtTable) {&lt;BR /&gt;if ($feature.CITY_PIN == Parcel.PIN) {&amp;nbsp; &amp;nbsp;//$feature.CITY_PIN is the current record. in the example it is 100.&lt;BR /&gt;var ListIt = Concatenate(Parcel.AssessCode, ',');&lt;BR /&gt;return ListIt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;return '000'; //test just check if it returns anything&lt;/P&gt;&lt;P&gt;Any help would be appreciated. Let me know if additional info would help. Thanks!&lt;/P&gt;&lt;P&gt;Running ArcGIS Pro 2.6.3.&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 16:52:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/return-list-from-attributes-using-arcade-in/m-p/1062960#M41439</guid>
      <dc:creator>HungGiang</dc:creator>
      <dc:date>2021-05-28T16:52:55Z</dc:date>
    </item>
  </channel>
</rss>

