<?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: Arcade: Use related FCs without needing feature service in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-use-related-fcs-without-needing-feature/m-p/1151582#M52503</link>
    <description>&lt;P&gt;Thanks for your help Mike and Kim. Your replies helped a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As Mike said:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt; &lt;SPAN class=""&gt;parent_class&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;$datastore&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"Facilities"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;"globalid"&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;false&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#featuresetbyname" target="_self"&gt;FeatureSetByName&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/types/#featureset" target="_self"&gt;FeatureSet&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/profiles/#globals-1" target="_self"&gt;&lt;SPAN&gt;Global Variable: $datastore&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1646720722636.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35815iA1CC5CDEEC1A52DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1646720722636.jpeg" alt="Bud_1-1646720722636.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Idea:&amp;nbsp;&lt;FONT size="3"&gt;&lt;A href="https://community.esri.com/t5/developers-ideas/arcade-documentation-arcade-featuresets-related/idi-p/1151094" target="_self"&gt;Arcade&lt;/A&gt;&lt;A href="https://community.esri.com/t5/developers-ideas/arcade-documentation-arcade-featuresets-related/idi-p/1151094" target="_self"&gt; Documentation: Arcade FeatureSets / related FCs&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;BR /&gt;And this will probably be useful:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/profiles/#globals-1" target="_self"&gt;$editcontext.editType&lt;/A&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/types/#text" target="_blank" rel="noopener"&gt;Text&lt;/A&gt;&lt;/TD&gt;&lt;TD&gt;Indicates whether the edit event is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;INSERT&lt;/FONT&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;UPDATE&lt;/FONT&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;DELETE&lt;/FONT&gt;, or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;NA&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(not applicable).&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-script-expression.htm#:~:text=using%20%24editcontext%20to-,check%20the%20edit%20type,-." target="_self"&gt;Identify the editing event trigger such as insert, update, or delete&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2022 09:21:42 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-03-10T09:21:42Z</dc:date>
    <item>
      <title>Arcade: Use related FCs without needing feature service</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-use-related-fcs-without-needing-feature/m-p/1151044#M52425</link>
      <description>&lt;P&gt;I'm hoping to use &lt;U&gt;related FCs&lt;/U&gt; in calculation attribute rules.&lt;BR /&gt;For example, use an attribute rule in FC-A to update the features in FC-B.&lt;/P&gt;&lt;P&gt;Question:&lt;BR /&gt;In order to use related FCs in attribute rules, do we need to publish the FC as a&amp;nbsp;&lt;U&gt;feature service&lt;/U&gt;&lt;U&gt;?&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2022 20:27:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-use-related-fcs-without-needing-feature/m-p/1151044#M52425</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-03-06T20:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: Use related FCs without needing feature service</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-use-related-fcs-without-needing-feature/m-p/1151061#M52429</link>
      <description>&lt;P&gt;Good Morning... If this is what you are referring to I don't think the data has to be coming from a feature service.&amp;nbsp; The sample data referenced in the article is just a file GDB.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/advanced-gdb-attribute-rules-editing-external-features-with-attribute-rules/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/advanced-gdb-attribute-rules-editing-external-features-with-attribute-rules/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2022 12:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-use-related-fcs-without-needing-feature/m-p/1151061#M52429</guid>
      <dc:creator>KimberlyGarbade</dc:creator>
      <dc:date>2022-03-06T12:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: Use related FCs without needing feature service</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-use-related-fcs-without-needing-feature/m-p/1151071#M52432</link>
      <description>&lt;P&gt;I believe if you use FeatureSetByName&amp;nbsp; with $datastore and ensure you check Exclude from Client Evaluation, the rule will search the database for the FC.&amp;nbsp; You may not be able to use the FeatureSetByRelationshipName.&amp;nbsp; So you will just have to built the query using PKey/FKey values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcade-expressions/blob/master/attribute_rule_calculation/MoveFieldToParent.js" target="_blank"&gt;https://github.com/Esri/arcade-expressions/blob/master/attribute_rule_calculation/MoveFieldToParent.js&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2022 14:33:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-use-related-fcs-without-needing-feature/m-p/1151071#M52432</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2022-03-06T14:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: Use related FCs without needing feature service</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-use-related-fcs-without-needing-feature/m-p/1151582#M52503</link>
      <description>&lt;P&gt;Thanks for your help Mike and Kim. Your replies helped a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As Mike said:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt; &lt;SPAN class=""&gt;parent_class&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;$datastore&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"Facilities"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;"globalid"&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;false&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#featuresetbyname" target="_self"&gt;FeatureSetByName&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/types/#featureset" target="_self"&gt;FeatureSet&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/profiles/#globals-1" target="_self"&gt;&lt;SPAN&gt;Global Variable: $datastore&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1646720722636.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35815iA1CC5CDEEC1A52DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1646720722636.jpeg" alt="Bud_1-1646720722636.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Idea:&amp;nbsp;&lt;FONT size="3"&gt;&lt;A href="https://community.esri.com/t5/developers-ideas/arcade-documentation-arcade-featuresets-related/idi-p/1151094" target="_self"&gt;Arcade&lt;/A&gt;&lt;A href="https://community.esri.com/t5/developers-ideas/arcade-documentation-arcade-featuresets-related/idi-p/1151094" target="_self"&gt; Documentation: Arcade FeatureSets / related FCs&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;BR /&gt;And this will probably be useful:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/profiles/#globals-1" target="_self"&gt;$editcontext.editType&lt;/A&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/types/#text" target="_blank" rel="noopener"&gt;Text&lt;/A&gt;&lt;/TD&gt;&lt;TD&gt;Indicates whether the edit event is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;INSERT&lt;/FONT&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;UPDATE&lt;/FONT&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;DELETE&lt;/FONT&gt;, or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;NA&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(not applicable).&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-script-expression.htm#:~:text=using%20%24editcontext%20to-,check%20the%20edit%20type,-." target="_self"&gt;Identify the editing event trigger such as insert, update, or delete&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 09:21:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-use-related-fcs-without-needing-feature/m-p/1151582#M52503</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-03-10T09:21:42Z</dc:date>
    </item>
  </channel>
</rss>

