<?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 Attribute Rules - Calculating values from intersecting features? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-calculating-values-from/m-p/460666#M20294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to set up some Attribute Rules to do the work that Attribute Assistant used to but it doesn't seem to have the capability. When I add a new point I want the "CITY" field to populate based on an Intersect with&amp;nbsp;a Municipality feature class. I was able to get a Pop-Up configured to do this with the following expression:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var n = Intersects(FeatureSetByName($map,'Municipalities',['NAME']),$feature);for (var f in n){return f.NAME}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That worked fine. Thanks to&amp;nbsp;&lt;A _jive_internal="true" 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;Kelly Gerrow's&lt;/A&gt;&amp;nbsp;post for the code.&lt;/P&gt;&lt;P&gt;When I go to add an Attribute Rule with the same functionality I get the error that "$map" does not exist. I cannot use $datastore in place of $map because the Municipality layer is not hosted in the same feature service as my points. It doesn't like $layer either.&lt;/P&gt;&lt;P&gt;Is there any way to have an Attribute Rule that calculates values from intersecting features that are in the same map but not hosted on the same feature service?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Sep 2019 20:30:49 GMT</pubDate>
    <dc:creator>TylerBain</dc:creator>
    <dc:date>2019-09-19T20:30:49Z</dc:date>
    <item>
      <title>Attribute Rules - Calculating values from intersecting features?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-calculating-values-from/m-p/460666#M20294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to set up some Attribute Rules to do the work that Attribute Assistant used to but it doesn't seem to have the capability. When I add a new point I want the "CITY" field to populate based on an Intersect with&amp;nbsp;a Municipality feature class. I was able to get a Pop-Up configured to do this with the following expression:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var n = Intersects(FeatureSetByName($map,'Municipalities',['NAME']),$feature);for (var f in n){return f.NAME}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That worked fine. Thanks to&amp;nbsp;&lt;A _jive_internal="true" 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;Kelly Gerrow's&lt;/A&gt;&amp;nbsp;post for the code.&lt;/P&gt;&lt;P&gt;When I go to add an Attribute Rule with the same functionality I get the error that "$map" does not exist. I cannot use $datastore in place of $map because the Municipality layer is not hosted in the same feature service as my points. It doesn't like $layer either.&lt;/P&gt;&lt;P&gt;Is there any way to have an Attribute Rule that calculates values from intersecting features that are in the same map but not hosted on the same feature service?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 20:30:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-calculating-values-from/m-p/460666#M20294</guid>
      <dc:creator>TylerBain</dc:creator>
      <dc:date>2019-09-19T20:30:49Z</dc:date>
    </item>
  </channel>
</rss>

