<?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: create attribute rules to copy a field value from intersecting polygon in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/create-attribute-rules-to-copy-a-field-value-from/m-p/1230425#M62093</link>
    <description>&lt;P&gt;Thanks again Johannes, the link was really helpful and will have a play with the other options.&lt;/P&gt;&lt;P&gt;Have a great day too&lt;/P&gt;&lt;P&gt;Kazzie&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2022 14:07:35 GMT</pubDate>
    <dc:creator>kazzie</dc:creator>
    <dc:date>2022-11-10T14:07:35Z</dc:date>
    <item>
      <title>create attribute rules to copy a field value from intersecting polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-attribute-rules-to-copy-a-field-value-from/m-p/1230182#M62067</link>
      <description>&lt;P&gt;I'm trying to create an arcade intersect expression for attribute rule in arcgis pro which will populate the attribute field 'Habitat_SiteName' in my Habitat_Patches layer when I create new polygons. The underlying polygon field name in the Habitat_Polygons layer is 'SiteName', within a file geodatabase.&lt;/P&gt;&lt;P&gt;Feature class 1:&amp;nbsp;Habitat_Patches&lt;/P&gt;&lt;P&gt;Feature class 2:&amp;nbsp;Habitat_Polygons&lt;/P&gt;&lt;P&gt;Triggers I would like to use are Insert and update.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 21:35:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-attribute-rules-to-copy-a-field-value-from/m-p/1230182#M62067</guid>
      <dc:creator>kazzie</dc:creator>
      <dc:date>2022-11-09T21:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: create attribute rules to copy a field value from intersecting polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-attribute-rules-to-copy-a-field-value-from/m-p/1230332#M62082</link>
      <description>&lt;LI-CODE lang="javascript"&gt;// load the habitat polygons
var habitats = FeaturesetByName($datastore, "Habitat_Polygons")
// get the first intersecting habitat
var habitat = First(Intersects(habitats, $feature))
// no intersecting habitat? -&amp;gt; abort
if(habitat == null) { return null }
// else return the habitat's site name
return habitat.SiteName&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 10 Nov 2022 06:41:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-attribute-rules-to-copy-a-field-value-from/m-p/1230332#M62082</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-11-10T06:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: create attribute rules to copy a field value from intersecting polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-attribute-rules-to-copy-a-field-value-from/m-p/1230356#M62085</link>
      <description>&lt;P&gt;Thanks Johannes, that worked a treat. sorry another question im trying to get my head around arcade. How would it work if you had multiple fields to copy.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 10:18:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-attribute-rules-to-copy-a-field-value-from/m-p/1230356#M62085</guid>
      <dc:creator>kazzie</dc:creator>
      <dc:date>2022-11-10T10:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: create attribute rules to copy a field value from intersecting polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-attribute-rules-to-copy-a-field-value-from/m-p/1230368#M62087</link>
      <description>&lt;P&gt;&amp;nbsp;In that case, you would leave the field parameter empty and &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm" target="_blank" rel="noopener"&gt;return a dictionary&lt;/A&gt; instead of a value.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var habitats = FeaturesetByName($datastore, "Habitat_Polygons")
var habitat = First(Intersects(habitats, $feature))
if(habitat == null) { return null }

return {
    "result": { "attributes": {
        "Field1": habitat.Field1,
        "Field2": habitat.Field2
    }}
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 10 Nov 2022 11:37:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-attribute-rules-to-copy-a-field-value-from/m-p/1230368#M62087</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-11-10T11:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: create attribute rules to copy a field value from intersecting polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-attribute-rules-to-copy-a-field-value-from/m-p/1230425#M62093</link>
      <description>&lt;P&gt;Thanks again Johannes, the link was really helpful and will have a play with the other options.&lt;/P&gt;&lt;P&gt;Have a great day too&lt;/P&gt;&lt;P&gt;Kazzie&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 14:07:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-attribute-rules-to-copy-a-field-value-from/m-p/1230425#M62093</guid>
      <dc:creator>kazzie</dc:creator>
      <dc:date>2022-11-10T14:07:35Z</dc:date>
    </item>
  </channel>
</rss>

