<?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: Can an Arcade Attribute Rule access attributes from a related table field to populate/calculate a feature class field?? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/can-an-arcade-attribute-rule-access-attributes/m-p/300586#M13059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what I've come up with, the error I get is that the output is resulting in a NaN, or Infinity.. I'm not sure how to address that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var ShpSize = Area($feature, 'square-feet');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var RelTblFld = FeatureSetByName($datastore, "RelatedTableName", ["LongIntField1"]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var Output = Round((RelTblFld)*(ShpSize), 2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;return Output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Feb 2020 15:46:14 GMT</pubDate>
    <dc:creator>BenjaminGrover</dc:creator>
    <dc:date>2020-02-06T15:46:14Z</dc:date>
    <item>
      <title>Can an Arcade Attribute Rule access attributes from a related table field to populate/calculate a feature class field??</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/can-an-arcade-attribute-rule-access-attributes/m-p/300585#M13058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel like I'm trying to do something very simple, but Arcade is kicking my butt so far.&amp;nbsp; All I want to do is populate a field in my feature class layer with the result of a simple field calculation that multiples one integer field by a field from a&amp;nbsp;1 to many related table...&amp;nbsp; In my situation, there may be many features from my layer, that are related to just 1 table record.&amp;nbsp; Any help would be appreciated.&amp;nbsp;arcade script&amp;nbsp;attribute rules rules‌@&lt;/P&gt;&lt;P&gt;#arcade‌&amp;nbsp;arcade expressions&amp;nbsp;&lt;A href="https://community.esri.com/t5/tag/arcade attribute expressions/tg-p"&gt;#arcade attribute expressions&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2020 22:49:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/can-an-arcade-attribute-rule-access-attributes/m-p/300585#M13058</guid>
      <dc:creator>BenjaminGrover</dc:creator>
      <dc:date>2020-02-05T22:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can an Arcade Attribute Rule access attributes from a related table field to populate/calculate a feature class field??</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/can-an-arcade-attribute-rule-access-attributes/m-p/300586#M13059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what I've come up with, the error I get is that the output is resulting in a NaN, or Infinity.. I'm not sure how to address that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var ShpSize = Area($feature, 'square-feet');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var RelTblFld = FeatureSetByName($datastore, "RelatedTableName", ["LongIntField1"]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var Output = Round((RelTblFld)*(ShpSize), 2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;return Output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 15:46:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/can-an-arcade-attribute-rule-access-attributes/m-p/300586#M13059</guid>
      <dc:creator>BenjaminGrover</dc:creator>
      <dc:date>2020-02-06T15:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can an Arcade Attribute Rule access attributes from a related table field to populate/calculate a feature class field??</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/can-an-arcade-attribute-rule-access-attributes/m-p/300587#M13060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many items are you trying to multiply together to get the result? Do you have a relationship class set up for the 1:Many relationship? You could try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var results = FeatureSetByRelationshipName($feature, "relationship_class_name", ['LongIntField1'], false);&lt;/P&gt;&lt;P&gt;product = Area($feature, 'square-feet')&lt;/P&gt;&lt;P&gt;for (var r in results) { product = product * r.LongIntField1; }&lt;/P&gt;&lt;P&gt;return product;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I might be misunderstanding which sign of the 1:many relationship you're trying to access, but it should work either way. If you're multiplying something from the 1 side to the many side, just replace the for loop with&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var r = First(results);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2020 13:11:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/can-an-arcade-attribute-rule-access-attributes/m-p/300587#M13060</guid>
      <dc:creator>WillHouston</dc:creator>
      <dc:date>2020-04-02T13:11:15Z</dc:date>
    </item>
  </channel>
</rss>

