<?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: Calculate Expression for Populating which Parent Layer a New Record in the Related Table was created from in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculate-expression-for-populating-which-parent/m-p/1593089#M10540</link>
    <description>&lt;P&gt;Good afternoon. Can you create a second table for the second layer? I think that would be the simplest solution. Then, we you archive your data, you can do a field calculate on each table to show which layer they originate from and combine the two tables into one if needed or just keep them separate.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Mar 2025 20:50:28 GMT</pubDate>
    <dc:creator>KerriRasmussen</dc:creator>
    <dc:date>2025-03-06T20:50:28Z</dc:date>
    <item>
      <title>Calculate Expression for Populating which Parent Layer a New Record in the Related Table was created from</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculate-expression-for-populating-which-parent/m-p/1587589#M10456</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a two layers and one table. Both layers relate to the table (1:M).&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I click on Layer_1, and then access the related table and click Add, is there any way to automatically populate a field that shows that the record in the table was created via Layer_1.&lt;/P&gt;&lt;P&gt;The same for Layer_2, click on the symbol for a geometry, access the related table and click Add, automatically populate a field showing that you added the record via Layer_2.&lt;/P&gt;&lt;P&gt;It is important to keep the two layers separate but the information being collected in the related table is the same.&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Glen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 18:06:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/calculate-expression-for-populating-which-parent/m-p/1587589#M10456</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-02-20T18:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Expression for Populating which Parent Layer a New Record in the Related Table was created from</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculate-expression-for-populating-which-parent/m-p/1593089#M10540</link>
      <description>&lt;P&gt;Good afternoon. Can you create a second table for the second layer? I think that would be the simplest solution. Then, we you archive your data, you can do a field calculate on each table to show which layer they originate from and combine the two tables into one if needed or just keep them separate.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 20:50:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/calculate-expression-for-populating-which-parent/m-p/1593089#M10540</guid>
      <dc:creator>KerriRasmussen</dc:creator>
      <dc:date>2025-03-06T20:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Expression for Populating which Parent Layer a New Record in the Related Table was created from</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/calculate-expression-for-populating-which-parent/m-p/1593104#M10542</link>
      <description>&lt;P&gt;I have something similar where I have multiple featureclasses related to a single 'inspections' table.&lt;/P&gt;&lt;P&gt;I set them up as relationship class in Pro, and published to feature service.&amp;nbsp; However, to get things (popups, adds, etc.) to work properly, I ended up creating a separate GUID field for each FC in the Inspections Table.&lt;/P&gt;&lt;P&gt;So, layer1 and layer2 both have GlobalID field, and the Inspections table has a Layer1_GUID field, and a Layer2_GID field.&amp;nbsp; I then set up a relationship class with Layer1 GlobalID using the Layer1_GUID field as the Foreign key, Layer2 GlobalID using Layer2_GUID, and so on.&lt;/P&gt;&lt;P&gt;So, when I add new inspections, it will populate the Layers respective foreign key field with the GlobalID from the respective layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This makes it very easy to 'see' what FC originated the inspection.&lt;/P&gt;&lt;P&gt;I actually want this is info a "SourceFC" field in the inspections table so I have a trigger on my data that when new feature is added, if the Layer1_GUID field is populated, update SouceFC = Layer1, If the Layer1_GUID field is populated, update SourceFC=Layer2, and so on.&lt;/P&gt;&lt;P&gt;Not sure if this will work for you, but might give you some ideas.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 21:11:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/calculate-expression-for-populating-which-parent/m-p/1593104#M10542</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2025-03-06T21:11:01Z</dc:date>
    </item>
  </channel>
</rss>

