<?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: How to attribute rules use features from feature class not in edit service in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/how-to-attribute-rules-use-features-from-feature/m-p/1161562#M387</link>
    <description>&lt;P&gt;That works for me. Thanks a lot!&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 14:10:53 GMT</pubDate>
    <dc:creator>Zoggo</dc:creator>
    <dc:date>2022-04-06T14:10:53Z</dc:date>
    <item>
      <title>How to attribute rules use features from feature class not in edit service</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/how-to-attribute-rules-use-features-from-feature/m-p/1161057#M381</link>
      <description>&lt;P&gt;I'm using attribute rules to calculate the name of a community when editing a new polygon.&amp;nbsp; All our datasets are hold in a enterprise geodatabase. We do editing with branch versioning and services. Basically the arcade script is working when I put the community feature class in the same edit service as the editing polygon feature class. Is there a way to access the community feature class without add it to the service? Both FC are in the same enterprise geodatabase.&lt;/P&gt;&lt;P&gt;This is my arcade code for the calculation:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fsGemeinden = FeatureSetByName($datastore, "AGIS_409_Dev.U_ALG_APP.va_gemeinde_sv", ["GEMEINDE"], true)
var fsGemeindenIntersect = Intersects(fsGemeinden, Geometry($feature))
if (Count(fsGemeindenIntersect) &amp;gt;0){
 var maxGemeinde
 var maxArea = 0
 for (var gemeinde in fsGemeindenIntersect){
  var areaGemeinde = Area(Intersection(gemeinde,$feature))
  //console(areaGemeinde)
  if (maxArea &amp;lt; areaGemeinde){
   maxGemeinde = gemeinde
   maxArea = areaGemeinde
  }
 }
 console (maxGemeinde.GEMEINDE)
 return maxGemeinde.GEMEINDE
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 08:30:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/how-to-attribute-rules-use-features-from-feature/m-p/1161057#M381</guid>
      <dc:creator>Zoggo</dc:creator>
      <dc:date>2022-04-05T08:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to attribute rules use features from feature class not in edit service</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/how-to-attribute-rules-use-features-from-feature/m-p/1161490#M385</link>
      <description>&lt;P&gt;Zoggo,&lt;/P&gt;&lt;P&gt;Yes. Your code looks fine, the issue may be that the attribute rule is not configured in a way to allow it. Do you have the&amp;nbsp;&lt;EM&gt;Exclude from Application Evaluation&amp;nbsp;&lt;/EM&gt;parameter checked?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JS_Esri_0-1649233592144.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38224iEB308EA391D53BE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JS_Esri_0-1649233592144.png" alt="JS_Esri_0-1649233592144.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;This allows the application to see tables not present in the service. This is outlined &lt;A href="https://community.esri.com/t5/attribute-rules-blog/attribute-rules-exclude-from-application/ba-p/1016604" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;~ Jake&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 08:28:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/how-to-attribute-rules-use-features-from-feature/m-p/1161490#M385</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2022-04-06T08:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to attribute rules use features from feature class not in edit service</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/how-to-attribute-rules-use-features-from-feature/m-p/1161562#M387</link>
      <description>&lt;P&gt;That works for me. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 14:10:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/how-to-attribute-rules-use-features-from-feature/m-p/1161562#M387</guid>
      <dc:creator>Zoggo</dc:creator>
      <dc:date>2022-04-06T14:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to attribute rules use features from feature class not in edit service</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/how-to-attribute-rules-use-features-from-feature/m-p/1161588#M389</link>
      <description>&lt;P&gt;No problem. Can you check and post if were able to do so?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 14:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/how-to-attribute-rules-use-features-from-feature/m-p/1161588#M389</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2022-04-06T14:52:03Z</dc:date>
    </item>
  </channel>
</rss>

