<?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 Fetch an attribute from underlying data layer in Field Maps in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/fetch-an-attribute-from-underlying-data-layer-in/m-p/1521643#M9290</link>
    <description>&lt;P&gt;I am trying to auto populate an attribute field in a layer in Field Maps forms using Arcade. I am placing a point on top of an existing point in Field Maps and I want to auto populate a field from the existing point layer to the feature I just created on top of it. I am using snapping, so they should be exact.&amp;nbsp; I am using the following calculation in forms and it will return "Null" but not the attribute from the underlying layer, which is what I want.&lt;/P&gt;&lt;P&gt;What am I doing wrong.....I used the code from the "Common calculated expressions for ArcGIS Field Maps" document.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2024 17:14:10 GMT</pubDate>
    <dc:creator>AshlieHildebrand</dc:creator>
    <dc:date>2024-08-14T17:14:10Z</dc:date>
    <item>
      <title>Fetch an attribute from underlying data layer in Field Maps</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/fetch-an-attribute-from-underlying-data-layer-in/m-p/1521643#M9290</link>
      <description>&lt;P&gt;I am trying to auto populate an attribute field in a layer in Field Maps forms using Arcade. I am placing a point on top of an existing point in Field Maps and I want to auto populate a field from the existing point layer to the feature I just created on top of it. I am using snapping, so they should be exact.&amp;nbsp; I am using the following calculation in forms and it will return "Null" but not the attribute from the underlying layer, which is what I want.&lt;/P&gt;&lt;P&gt;What am I doing wrong.....I used the code from the "Common calculated expressions for ArcGIS Field Maps" document.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 17:14:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/fetch-an-attribute-from-underlying-data-layer-in/m-p/1521643#M9290</guid>
      <dc:creator>AshlieHildebrand</dc:creator>
      <dc:date>2024-08-14T17:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch an attribute from underlying data layer in Field Maps</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/fetch-an-attribute-from-underlying-data-layer-in/m-p/1523006#M9321</link>
      <description>&lt;P&gt;There could be a number of things but I would like to rule something out.&lt;BR /&gt;&lt;BR /&gt;The second line what if you wrote it like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;SiteID&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;Intersects&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;SiteIDs&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Hope it was that simple!&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Aug 2024 16:55:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/fetch-an-attribute-from-underlying-data-layer-in/m-p/1523006#M9321</guid>
      <dc:creator>KeizzyA</dc:creator>
      <dc:date>2024-08-16T16:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch an attribute from underlying data layer in Field Maps</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/fetch-an-attribute-from-underlying-data-layer-in/m-p/1523101#M9322</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Nope that didn't make a difference...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Update:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The below code works for a polygon feature that is the underlying feature but it gives me "No Data" for a point feature and I am using snapping. Thoughts....&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;SiteIDs&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;'Polygon Test'&lt;/SPAN&gt;&lt;SPAN&gt;,[&lt;/SPAN&gt;&lt;SPAN&gt;'SiteID'&lt;/SPAN&gt;&lt;SPAN&gt;])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;SiteID&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;Intersects&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;SiteIDs&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&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;SiteID&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;return&lt;/SPAN&gt; &lt;SPAN&gt;SiteID&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;'SiteID'&lt;/SPAN&gt;&lt;SPAN&gt;] &amp;nbsp;&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;return&lt;/SPAN&gt; &lt;SPAN&gt;"No Data"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Aug 2024 20:09:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/fetch-an-attribute-from-underlying-data-layer-in/m-p/1523101#M9322</guid>
      <dc:creator>AshlieHildebrand</dc:creator>
      <dc:date>2024-08-16T20:09:40Z</dc:date>
    </item>
  </channel>
</rss>

