<?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 Access Parent Attribute in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/access-parent-attribute/m-p/1693502#M1930</link>
    <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I am unsure why my following code isn't working.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;related&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;FeatureSetByRelationshipName&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"ACProductsGroundwaterSamplingPoints_ACProductsQuarterlySurveyForm"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;first&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;related&lt;/SPAN&gt;&lt;SPAN&gt;)[&lt;/SPAN&gt;&lt;SPAN&gt;'WellID'&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;-----&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I am trying to calculate a field in the child table based on the value in the parent table, but it's throwing an error.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thanks!&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 30 Mar 2026 18:35:53 GMT</pubDate>
    <dc:creator>JarredPaquinMC2</dc:creator>
    <dc:date>2026-03-30T18:35:53Z</dc:date>
    <item>
      <title>Access Parent Attribute</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/access-parent-attribute/m-p/1693502#M1930</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I am unsure why my following code isn't working.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;related&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;FeatureSetByRelationshipName&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"ACProductsGroundwaterSamplingPoints_ACProductsQuarterlySurveyForm"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;first&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;related&lt;/SPAN&gt;&lt;SPAN&gt;)[&lt;/SPAN&gt;&lt;SPAN&gt;'WellID'&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;-----&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I am trying to calculate a field in the child table based on the value in the parent table, but it's throwing an error.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thanks!&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Mar 2026 18:35:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/access-parent-attribute/m-p/1693502#M1930</guid>
      <dc:creator>JarredPaquinMC2</dc:creator>
      <dc:date>2026-03-30T18:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Access Parent Attribute</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/access-parent-attribute/m-p/1693529#M1931</link>
      <description>&lt;P&gt;Are you checking whether there are any records in related?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var related = FeatureSetByRelationshipName($feature, "ACProductsGroundwaterSamplingPoints_ACProductsQuarterlySurveyForm");
return IIf(Count(related) &amp;gt; 0, First(related)["WellID"], "No related records");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 19:39:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/access-parent-attribute/m-p/1693529#M1931</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2026-03-30T19:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Access Parent Attribute</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/access-parent-attribute/m-p/1693531#M1932</link>
      <description>&lt;P&gt;No, unfortunately that's not it. When I try to add a related record to the table using FieldMaps, it's still failing to calculate. Unfortunately FieldMaps does not provide very much in the way of error messages.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 19:46:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/access-parent-attribute/m-p/1693531#M1932</guid>
      <dc:creator>JarredPaquinMC2</dc:creator>
      <dc:date>2026-03-30T19:46:21Z</dc:date>
    </item>
  </channel>
</rss>

