<?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: Help with an attribute rule to populate field when a point is placed. in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/help-with-an-attribute-rule-to-populate-field-when/m-p/1513725#M1528</link>
    <description>&lt;P&gt;Thanks Nathan!&amp;nbsp;&lt;BR /&gt;I'll give it a shot.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2024 16:12:05 GMT</pubDate>
    <dc:creator>JustinBernard1886</dc:creator>
    <dc:date>2024-08-01T16:12:05Z</dc:date>
    <item>
      <title>Help with an attribute rule to populate field when a point is placed.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/help-with-an-attribute-rule-to-populate-field-when/m-p/1495964#M1506</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;I wonder if someone can help me to update an existing attribute rule. I initially created an attribute rule where a field will be populated with the attribute of the intersecting geometry.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to update the rule where if the point is placed outside of the geometry, the rule will update the field with a generic "Z00".&lt;BR /&gt;&lt;BR /&gt;Unfortunately, my arcade knowledge is still very basic (I dont need to create rules often), so I am wondering if I can get help with this?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here is the code:&lt;/P&gt;&lt;P&gt;var ZAreas = FeatureSetByName($datastore, 'GISZArea', ["ZArea"], true);&lt;BR /&gt;var OverlapZArea = Upper(DomainName(First(Intersects(ZAreas, Geometry($feature))), 'ZArea'));&lt;BR /&gt;if (isEmpty($feature.ZArea)){&lt;BR /&gt;return OverlapZArea;&lt;BR /&gt;}&lt;BR /&gt;return $feature.ZArea&lt;/P&gt;&lt;P&gt;The codes works well to update the ZArea field, but I would like to have the ZArea field updated with "Z00" if the point is place outside of the geometry.&lt;BR /&gt;&lt;BR /&gt;Regards,&amp;nbsp;&lt;BR /&gt;Justin&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 14:35:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/help-with-an-attribute-rule-to-populate-field-when/m-p/1495964#M1506</guid>
      <dc:creator>JustinBernard1886</dc:creator>
      <dc:date>2024-06-21T14:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with an attribute rule to populate field when a point is placed.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/help-with-an-attribute-rule-to-populate-field-when/m-p/1505967#M1516</link>
      <description>&lt;P&gt;Hi Justin, I think the IIF statement would be a good fit for what you're trying to accomplish&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/logical_functions/#iif" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/arcade/function-reference/logical_functions/#iif&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Give this a try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var ZAreas = FeatureSetByName($datastore, "GISZArea", ["ZArea"], true);

var OverlapZArea = Upper(DomainName(First(Intersects(ZAreas, Geometry($feature))), 'ZArea'));

//If an interesect isn't found, return  Z00, otherwise return the ZArea attribute from the 
return IIf(IsEmpty(OverlapZArea), 'Z00', OverlapZArea.ZArea)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Jul 2024 22:13:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/help-with-an-attribute-rule-to-populate-field-when/m-p/1505967#M1516</guid>
      <dc:creator>NathanGEOregon</dc:creator>
      <dc:date>2024-07-16T22:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with an attribute rule to populate field when a point is placed.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/help-with-an-attribute-rule-to-populate-field-when/m-p/1513725#M1528</link>
      <description>&lt;P&gt;Thanks Nathan!&amp;nbsp;&lt;BR /&gt;I'll give it a shot.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 16:12:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/help-with-an-attribute-rule-to-populate-field-when/m-p/1513725#M1528</guid>
      <dc:creator>JustinBernard1886</dc:creator>
      <dc:date>2024-08-01T16:12:05Z</dc:date>
    </item>
  </channel>
</rss>

