<?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: Auto populate a field from related record using Arcade calculated expressions in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-a-field-from-related-record-using/m-p/1381665#M7923</link>
    <description>&lt;P&gt;Hopefully I understand your question correctly and I don't have it backwards. I think you can use the&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipname" target="_self"&gt;FeatureSetByRelationshipName&lt;/A&gt;&amp;nbsp;function in Arcade to make a calculated expression on the field in the form. This assumes you have a relationship class created in the geodatabase.&lt;/P&gt;&lt;P&gt;&lt;A href="https://youtu.be/TbDY0IpaDoI?si=RXUdEzR5SrS_hrnT" target="_blank" rel="noopener"&gt;https://youtu.be/TbDY0IpaDoI?si=RXUdEzR5SrS_hrnT&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2024 16:42:00 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2024-02-13T16:42:00Z</dc:date>
    <item>
      <title>Auto populate a field from related record using Arcade calculated expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-a-field-from-related-record-using/m-p/1381647#M7922</link>
      <description>&lt;P&gt;Hi, I know it's possible to grab data from the related record (inventory) when adding in a new related table (inspection record) available here:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/field-maps/field-mobility/common-calculated-expressions-for-arcgis-field-maps/" target="_blank" rel="noopener"&gt;Common calculated expressions for ArcGIS Field Maps (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, I have numerous feature classes (point, line and polygon) with one related table (for all inspection records). Does anyone know if you can use Field Maps Designers Arcade expression to ensure a field from the parent inventory layer (could be either point, line or polygon) can automatically populate the related table record?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 16:18:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-a-field-from-related-record-using/m-p/1381647#M7922</guid>
      <dc:creator>cat206</dc:creator>
      <dc:date>2024-02-13T16:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate a field from related record using Arcade calculated expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-a-field-from-related-record-using/m-p/1381665#M7923</link>
      <description>&lt;P&gt;Hopefully I understand your question correctly and I don't have it backwards. I think you can use the&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipname" target="_self"&gt;FeatureSetByRelationshipName&lt;/A&gt;&amp;nbsp;function in Arcade to make a calculated expression on the field in the form. This assumes you have a relationship class created in the geodatabase.&lt;/P&gt;&lt;P&gt;&lt;A href="https://youtu.be/TbDY0IpaDoI?si=RXUdEzR5SrS_hrnT" target="_blank" rel="noopener"&gt;https://youtu.be/TbDY0IpaDoI?si=RXUdEzR5SrS_hrnT&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 16:42:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-a-field-from-related-record-using/m-p/1381665#M7923</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2024-02-13T16:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate a field from related record using Arcade calculated expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-a-field-from-related-record-using/m-p/1382143#M7928</link>
      <description>&lt;P&gt;Thanks for commenting BlakeTerhune - I have tried to do this but i have numerous related layers going into one related table. See below screenshot when i try to use the related features:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cat206_0-1707915087862.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94724iDBCC55446578EC46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cat206_0-1707915087862.png" alt="cat206_0-1707915087862.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So depending which layer the user with click on and add a related record to, I will need the ID field carried across - hopefully that makes a bit more sense?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 12:52:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-a-field-from-related-record-using/m-p/1382143#M7928</guid>
      <dc:creator>cat206</dc:creator>
      <dc:date>2024-02-14T12:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate a field from related record using Arcade calculated expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-a-field-from-related-record-using/m-p/1407804#M8314</link>
      <description>&lt;P&gt;Hey Cat,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you got any progress on this? I am also looking for the same thing as you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AB&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 00:23:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-a-field-from-related-record-using/m-p/1407804#M8314</guid>
      <dc:creator>anbinh</dc:creator>
      <dc:date>2024-04-10T00:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate a field from related record using Arcade calculated expressions</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-a-field-from-related-record-using/m-p/1417464#M8508</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Unfortunately not no, I tried the FeatureSet but because there are multiple, it fails to calculate&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Get the feature set for the hydrants&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;maintenance&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;FeatureSetById&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$datastore&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'ff83973e1a074d4ab758fce9d88f5339'&lt;/SPAN&gt;&lt;SPAN&gt;, [&lt;/SPAN&gt;&lt;SPAN&gt;'Maintenance_Type'&lt;/SPAN&gt;&lt;SPAN&gt;], &lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// Get the first hydrant (should only be one)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;maintenance2&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;First&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;maintenance&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// If there was a hydrant, return the facilityid of it,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Otherwise, return null&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (!&lt;/SPAN&gt;&lt;SPAN&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;maintenance2&lt;/SPAN&gt;&lt;SPAN&gt;)) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;maintenance2&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;'Maintenance_Type'&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;null&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 May 2024 11:31:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/auto-populate-a-field-from-related-record-using/m-p/1417464#M8508</guid>
      <dc:creator>cat206</dc:creator>
      <dc:date>2024-05-01T11:31:31Z</dc:date>
    </item>
  </channel>
</rss>

