<?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: Autofill fields on mobile from a related table based on a one-to-one relationship in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/autofill-fields-on-mobile-from-a-related-table/m-p/1416651#M8488</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/757774"&gt;@jmcdonald_sdi&lt;/a&gt;&amp;nbsp;! Can you tell me more about your workflow? I'm assuming that your point layer is completely blank and doesn't contain points, can you confirm?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Apr 2024 18:05:33 GMT</pubDate>
    <dc:creator>KerriRasmussen</dc:creator>
    <dc:date>2024-04-29T18:05:33Z</dc:date>
    <item>
      <title>Autofill fields on mobile from a related table based on a one-to-one relationship</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/autofill-fields-on-mobile-from-a-related-table/m-p/1416058#M8472</link>
      <description>&lt;P&gt;I'm trying to configure a empty asset points layer in ArcGIS Pro that I can collect on that, once a unique ID found on the asset is entered in the top form field,&amp;nbsp; will pull and autofill all of the point layer fields from a corresponding row that exists in a related table based on that unique ID.&lt;BR /&gt;&lt;BR /&gt;I know I can do a simple spatial join on the unique ID field once I collect all or a subset of the asset points, but there's a project constraint that necessitates the data being joined simultaneously while the asset is collected.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 19:36:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/autofill-fields-on-mobile-from-a-related-table/m-p/1416058#M8472</guid>
      <dc:creator>jmcdonald_sdi</dc:creator>
      <dc:date>2024-04-26T19:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Autofill fields on mobile from a related table based on a one-to-one relationship</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/autofill-fields-on-mobile-from-a-related-table/m-p/1416651#M8488</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/757774"&gt;@jmcdonald_sdi&lt;/a&gt;&amp;nbsp;! Can you tell me more about your workflow? I'm assuming that your point layer is completely blank and doesn't contain points, can you confirm?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 18:05:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/autofill-fields-on-mobile-from-a-related-table/m-p/1416651#M8488</guid>
      <dc:creator>KerriRasmussen</dc:creator>
      <dc:date>2024-04-29T18:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Autofill fields on mobile from a related table based on a one-to-one relationship</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/autofill-fields-on-mobile-from-a-related-table/m-p/1416760#M8491</link>
      <description>&lt;P&gt;Yes, point layer is completely blank. I want to collect location points and photos&amp;nbsp;to "enrich" a non-spatial table of assets that were collected recently.&lt;BR /&gt;&lt;BR /&gt;My intended workflow is to have the field crews enter a physical ID from the asset as the first field of a form, this action would trigger a check of the related table using that unique ID. If the ID entered matches one found on the related table, it automatically fills in the rest of the form with the corresponding data from that specific row on the related table. From there, the crew can confirm all those attributes on the form and save the new asset point.&lt;BR /&gt;&lt;BR /&gt;I put the point layer and the asset data table in a fresh geodatabase and created a one-to-one relationship class on the field that contains the physical ID found on the asset. I then published the point layer to AGOL to try to see if the table would show up in the related records tab in Field Maps designer.&lt;BR /&gt;&lt;BR /&gt;The table shows up in field maps designer with the layer but I can't configure the point layer to pull data from the table. I can see the point layer as a related record for the asset table but I don't see the table as a related record on the point layer. Maybe this has to with the point layer being blank.&lt;BR /&gt;&lt;BR /&gt;Any input or advice would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 22:01:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/autofill-fields-on-mobile-from-a-related-table/m-p/1416760#M8491</guid>
      <dc:creator>jmcdonald_sdi</dc:creator>
      <dc:date>2024-04-29T22:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Autofill fields on mobile from a related table based on a one-to-one relationship</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/autofill-fields-on-mobile-from-a-related-table/m-p/1418283#M8540</link>
      <description>&lt;P&gt;Here's my Arcade expression that should work but doesn't:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Get the text input value from the Facility_ID__Mix_ field&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;userInput&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;Facility_ID__Mix_&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// Define the related records using the CM_Integrated_TEST relationship&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;relatedRecords&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;"CM_Integrated_TEST"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// Check if there are any related records&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;relatedRecords&lt;/SPAN&gt;&lt;SPAN&gt;)) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// Handle the case where there are no related records (optional)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;"No related records found"&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; &lt;/SPAN&gt;&lt;SPAN&gt;// Loop through the related records&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;row&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;relatedRecords&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;// Get the value of the unique ID field (updated variable name)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;relatedID&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;row&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Facility_ID__Mix_&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;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// Check if the text input matches the unique ID&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;userInput&lt;/SPAN&gt;&lt;SPAN&gt; === &lt;/SPAN&gt;&lt;SPAN&gt;relatedID&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// Fields match, return the entire related record&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;row&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;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// Fields don't match in any related records&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;"No match found for ID: "&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;userInput&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 May 2024 18:49:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/autofill-fields-on-mobile-from-a-related-table/m-p/1418283#M8540</guid>
      <dc:creator>jmcdonald_sdi</dc:creator>
      <dc:date>2024-05-02T18:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Autofill fields on mobile from a related table based on a one-to-one relationship</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/autofill-fields-on-mobile-from-a-related-table/m-p/1418916#M8556</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/757774"&gt;@jmcdonald_sdi&lt;/a&gt;&amp;nbsp;. Sorry for the delay. I did some testing and was able to get it to work. Here is the expression I used, you will need to update with your data. Please let me know if you have any questions.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//get facility ID value
var facilityID = $feature.Facility_ID__Mix_

//Use FeatureSetByName to find related table, this will show $map, "FeatureName - TableName"
var relatedRecords = FeatureSetByName($map, "FeatureName - TableName")

//Filter by unique facility ID
var facilityIDrecords = Filter(relatedRecords, "Facility_ID__Mix_ = @facilityID")

//Use first record found in filter
var FirstRecord = First(facilityIDrecords)

//return the first record attribute, add your field name after the .
return FirstRecord.YourFieldName&lt;/LI-CODE&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 May 2024 19:39:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/autofill-fields-on-mobile-from-a-related-table/m-p/1418916#M8556</guid>
      <dc:creator>KerriRasmussen</dc:creator>
      <dc:date>2024-05-03T19:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Autofill fields on mobile from a related table based on a one-to-one relationship</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/autofill-fields-on-mobile-from-a-related-table/m-p/1419569#M8568</link>
      <description>&lt;P&gt;Hey Kari,&lt;BR /&gt;&lt;BR /&gt;This code worked perfectly with your changes:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//get facility ID value&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;facilityID&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;Facility_ID__Mix_&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;//Use FeatureSetByName to find related table, this will show $map, "FeatureName - TableName"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;relatedRecords&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$map&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"CM Integrated TEST"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;//Filter by unique facility ID&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;facilityIDrecords&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;relatedRecords&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Facility_ID__Mix_ = @facilityID"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;//Use first record found in filter&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;FirstRecord&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;facilityIDrecords&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;//return the first record attribute, add your field name after the .&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;FirstRecord&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Source&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Thanks so much,&lt;BR /&gt;&lt;BR /&gt;Jack&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 18:29:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/autofill-fields-on-mobile-from-a-related-table/m-p/1419569#M8568</guid>
      <dc:creator>jmcdonald_sdi</dc:creator>
      <dc:date>2024-05-06T18:29:32Z</dc:date>
    </item>
  </channel>
</rss>

