<?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: Chasing my tail with Arcade/Attribute Rules in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657083#M29162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't used Attribute Rules, but take a look at the following blog on how to do this using Arcade in a web map:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2018/12/10/overlapping-features-in-pop-ups-quick-introduction-to-using-featuresets-with-arcade"&gt;https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2018/12/10/overlapping-features-in-pop-ups-quick-introduction-to-using-featuresets-with-arcade&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may give you the correct expression you're looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2020 17:44:16 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2020-03-23T17:44:16Z</dc:date>
    <item>
      <title>Chasing my tail with Arcade/Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657082#M29161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am testing the feasibility of the Address Management Solution for my agency.&amp;nbsp; There are a number of attribute rules embedded upon the feature classes that populate fields upon editing.&amp;nbsp; For example, the site address point feature class concatenates address elements (pre dir, house num, street name etc) into the full address field.&amp;nbsp; Easy enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I'd like to populate attributes based on spatial location: add a new point and be able to populate city and zip from underlying coincident polygons: if the new point falls within the city of Holladay (municipality layer) and 84124 (zip code layer) I want the appropriate fields in the point populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done this sort of thing using attribute assistant, and I could make the calculations using arcpy, but with Arcade the scripting language of choice for Attributes Rules, I'm wallowing in the trough of the the learning curve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 17:08:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657082#M29161</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-03-23T17:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Chasing my tail with Arcade/Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657083#M29162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't used Attribute Rules, but take a look at the following blog on how to do this using Arcade in a web map:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2018/12/10/overlapping-features-in-pop-ups-quick-introduction-to-using-featuresets-with-arcade"&gt;https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2018/12/10/overlapping-features-in-pop-ups-quick-introduction-to-using-featuresets-with-arcade&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may give you the correct expression you're looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 17:44:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657083#M29162</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2020-03-23T17:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Chasing my tail with Arcade/Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657084#M29163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image" height="27" src="https://community.esri.com/legacyfs/online/485993_python.jpg" width="27" /&gt;&amp;nbsp;Arcade ehh? couple of years to go Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 17:49:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657084#M29163</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-03-23T17:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Chasing my tail with Arcade/Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657085#M29164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jake; I've got a Pro project open right now following along what &lt;A href="https://community.esri.com/migrated-users/3063"&gt;Kelly Gerrow&lt;/A&gt;‌ describes.&amp;nbsp; There is also a blog entry by &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌ I'll follow along too.&amp;nbsp; These are giving me exposure to the Arcade logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 17:54:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657085#M29164</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-03-23T17:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Chasing my tail with Arcade/Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657086#M29165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm hoping!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 18:02:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657086#M29165</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-03-23T18:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Chasing my tail with Arcade/Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657087#M29166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to get this to work.&amp;nbsp; I tested adding a county name to a point feature.&amp;nbsp; The county name is stored in a field called &lt;STRONG&gt;NAME.&lt;/STRONG&gt;&amp;nbsp; The county feature class is in the same geodatabase as the point feature class, and the feature class is named &lt;STRONG&gt;Counties&lt;/STRONG&gt;.&amp;nbsp; Here was the expression I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;var countyBoundary =  FeatureSetByName($datastore, "Counties", ["NAME"], true)
var intersectLayer = Intersects(countyBoundary, Geometry($feature))
var layer = First (intersectLayer)
return layer.NAME&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:48:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657087#M29166</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-12T03:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Chasing my tail with Arcade/Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657088#M29167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome! Thanks Jake!&amp;nbsp; I'm right in the middle of not only the covid19 mojo like everyone else, but we had a significant earthquake here in the Salt Lake Valley; I'm working from home doing damage assessment database work and I'm getting tugged in multiple directions at once.&amp;nbsp; I think that's new normal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At any rate, I'll give your suggestion a try asap!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 19:59:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657088#M29167</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-03-23T19:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Chasing my tail with Arcade/Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657089#M29168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to get the suggested code from &lt;A href="https://community.esri.com/migrated-users/8586"&gt;Jake Skinner&lt;/A&gt;‌ to work, but I have a question regarding FeatureSetByName() function.&amp;nbsp; I had several different data sources in my ArcGIS Pro map and tried to use $map instead of $datastore and that failed with an error to the effect that $map was not defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understand it, if one uses $datastore, all the layers one is working&amp;nbsp;with need to be in the same location so for testing&amp;nbsp; I have my points and my municipalities in the same local file gdb; I can now calculate the city name on a new point. Does $map not work in ArcGis Pro 2.5?&amp;nbsp; I'm going to be adding points and right now&amp;nbsp;I don't know where all the layers that I need to use will be coming from, but I'm pretty sure I don't want them in the same Egdb as my address points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3063"&gt;Kelly Gerrow&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 23:22:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657089#M29168</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-03-23T23:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Chasing my tail with Arcade/Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657090#M29169</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;$map works in ArcGIS Pro 2.5, but it won't work&amp;nbsp;in Arcade expressions used for Attribute Rules and Field Calculations (and others). Have a look at&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/arcade/guide/profiles/" title="https://developers.arcgis.com/arcade/guide/profiles/"&gt;Profiles | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&amp;nbsp;which lists all the available profiles where you can apply Arcade expressions and each profile has a table with the Globals that are available in that profile.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2020 12:23:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657090#M29169</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-03-24T12:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Chasing my tail with Arcade/Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657091#M29170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's an unfortunate limitation.&amp;nbsp; It seems to me that with services being exploited as data sources, logically&amp;nbsp;we would want $map to work in Pro&amp;nbsp;for calculations and/or attribute rules.&amp;nbsp; Time for an idea's post....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2020 13:48:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657091#M29170</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-03-24T13:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Chasing my tail with Arcade/Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657092#M29171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vote early and vote often:&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/ideas/18212" target="_blank"&gt;https://community.esri.com/ideas/18212&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2021 08:42:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/chasing-my-tail-with-arcade-attribute-rules/m-p/657092#M29171</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-06-22T08:42:36Z</dc:date>
    </item>
  </channel>
</rss>

