<?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 Attribute Rule--Get selected feature ID and assign it to a newly created row in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-attribute-rule-get-selected-feature-id-and/m-p/1069717#M42173</link>
    <description>&lt;P&gt;What you describe isn't possible right now, because Arcade doesn't recognize selections.&lt;/P&gt;&lt;P&gt;It is absolutely possible to get other tables (take a look at the &lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/" target="_blank" rel="noopener"&gt;FeatureSetBy*&lt;/A&gt; functions) and to edit another table (take a look at &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" rel="noopener"&gt;this blog&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;So you could get your feature class with FetaureSetBy* and then filter it. For that, you need a field that is in both tables. In your case, that is likely the ID, and you want to get that, so this way isn't possible.&lt;/P&gt;&lt;P&gt;If the table you're creating a new row in (step 2) is a feature class, maybe an intersect works for you ("If this new point intersects an existing polygon, take that polygon's ID").&lt;/P&gt;&lt;P&gt;If you have a feature class and a non-spatial table, and the only field linking those is ID, then you can't do this with Arcade.&lt;/P&gt;&lt;P&gt;What you could do:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a relationship class between the fc and table&lt;/LI&gt;&lt;LI&gt;Select a feature&lt;/LI&gt;&lt;LI&gt;Open the Attribute Pane&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1623999789258.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16267iB78A1A23ED2DFB2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_0-1623999789258.png" alt="JohannesLindner_0-1623999789258.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Expand the feature to see its relationships&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_1-1623999932416.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16268i33544FC05864E31E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_1-1623999932416.png" alt="JohannesLindner_1-1623999932416.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Right click on the relationship you created, "Add New To Relationship"&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_2-1624000097875.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16269iDB05A8217C6593B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_2-1624000097875.png" alt="JohannesLindner_2-1624000097875.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;ArcGIS creates a new record in the related table, puts the feature's ID in the field specified by the relationship class, and opens the new row in the Attribute pane.&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Fri, 18 Jun 2021 07:10:20 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2021-06-18T07:10:20Z</dc:date>
    <item>
      <title>Arcade Attribute Rule--Get selected feature ID and assign it to a newly created row</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-attribute-rule-get-selected-feature-id-and/m-p/1069538#M42158</link>
      <description>&lt;P&gt;My case is like following:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; user selects a feature.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; user creates a new row in the feature's relate table&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; &amp;nbsp;An Arcade attribute rule in the relate table will get the selected feature's ID and&amp;nbsp;assign the ID to the newly created row.&lt;/P&gt;&lt;P&gt;Not sure if this can be done since two $feature variables needed.&amp;nbsp; have not see a sample which updates a table.&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp; database is Oracle/SDE.&amp;nbsp; Table is registered with SDE so it has OID.&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 19:05:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-attribute-rule-get-selected-feature-id-and/m-p/1069538#M42158</guid>
      <dc:creator>YinghongLi1</dc:creator>
      <dc:date>2021-06-17T19:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Attribute Rule--Get selected feature ID and assign it to a newly created row</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-attribute-rule-get-selected-feature-id-and/m-p/1069717#M42173</link>
      <description>&lt;P&gt;What you describe isn't possible right now, because Arcade doesn't recognize selections.&lt;/P&gt;&lt;P&gt;It is absolutely possible to get other tables (take a look at the &lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/" target="_blank" rel="noopener"&gt;FeatureSetBy*&lt;/A&gt; functions) and to edit another table (take a look at &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" rel="noopener"&gt;this blog&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;So you could get your feature class with FetaureSetBy* and then filter it. For that, you need a field that is in both tables. In your case, that is likely the ID, and you want to get that, so this way isn't possible.&lt;/P&gt;&lt;P&gt;If the table you're creating a new row in (step 2) is a feature class, maybe an intersect works for you ("If this new point intersects an existing polygon, take that polygon's ID").&lt;/P&gt;&lt;P&gt;If you have a feature class and a non-spatial table, and the only field linking those is ID, then you can't do this with Arcade.&lt;/P&gt;&lt;P&gt;What you could do:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a relationship class between the fc and table&lt;/LI&gt;&lt;LI&gt;Select a feature&lt;/LI&gt;&lt;LI&gt;Open the Attribute Pane&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1623999789258.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16267iB78A1A23ED2DFB2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_0-1623999789258.png" alt="JohannesLindner_0-1623999789258.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Expand the feature to see its relationships&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_1-1623999932416.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16268i33544FC05864E31E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_1-1623999932416.png" alt="JohannesLindner_1-1623999932416.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Right click on the relationship you created, "Add New To Relationship"&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_2-1624000097875.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16269iDB05A8217C6593B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_2-1624000097875.png" alt="JohannesLindner_2-1624000097875.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;ArcGIS creates a new record in the related table, puts the feature's ID in the field specified by the relationship class, and opens the new row in the Attribute pane.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 18 Jun 2021 07:10:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-attribute-rule-get-selected-feature-id-and/m-p/1069717#M42173</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-06-18T07:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Attribute Rule--Get selected feature ID and assign it to a newly created row</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-attribute-rule-get-selected-feature-id-and/m-p/1070383#M42245</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp; Too bad that i can't do the attribute rule on this.&amp;nbsp; However your solution worth to explore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 12:41:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-attribute-rule-get-selected-feature-id-and/m-p/1070383#M42245</guid>
      <dc:creator>YinghongLi1</dc:creator>
      <dc:date>2021-06-21T12:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Attribute Rule--Get selected feature ID and assign it to a newly created row</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-attribute-rule-get-selected-feature-id-and/m-p/1072070#M42435</link>
      <description>&lt;P&gt;I tried this out and it works very well.&amp;nbsp; with editor tracking applied, all the values which need to be entered automatically are done.&amp;nbsp; thanks.&amp;nbsp; very smart!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 15:37:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-attribute-rule-get-selected-feature-id-and/m-p/1072070#M42435</guid>
      <dc:creator>YinghongLi1</dc:creator>
      <dc:date>2021-06-24T15:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Attribute Rule--Get selected feature ID and assign it to a newly created row</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-attribute-rule-get-selected-feature-id-and/m-p/1545674#M88909</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Is there a way to replicate this workflow if I have the data layer and relationship table published as a feature service in Enterprise?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 16:14:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-attribute-rule-get-selected-feature-id-and/m-p/1545674#M88909</guid>
      <dc:creator>JacobFulkerson</dc:creator>
      <dc:date>2024-10-04T16:14:35Z</dc:date>
    </item>
  </channel>
</rss>

