<?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 Arcade expression to populate hosted table field in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/arcade-expression-to-populate-hosted-table-field/m-p/1601583#M16403</link>
    <description>&lt;P&gt;I am looking for help with an arcade expression to autopopulate a field on an hosted table based on a field in a hosted feature layer.&amp;nbsp; Example: hosted table &amp;amp; hosted feature - fields code_number &amp;amp; status&amp;nbsp;&lt;/P&gt;&lt;P&gt;If code_number on both hosted table &amp;amp; hosted feature match then return the status from the hosted feature into the corresponding status field into the hosted table.&lt;/P&gt;&lt;P&gt;I hope this makes sense, any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 01 Apr 2025 21:17:05 GMT</pubDate>
    <dc:creator>TKSHEP</dc:creator>
    <dc:date>2025-04-01T21:17:05Z</dc:date>
    <item>
      <title>Arcade expression to populate hosted table field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/arcade-expression-to-populate-hosted-table-field/m-p/1601583#M16403</link>
      <description>&lt;P&gt;I am looking for help with an arcade expression to autopopulate a field on an hosted table based on a field in a hosted feature layer.&amp;nbsp; Example: hosted table &amp;amp; hosted feature - fields code_number &amp;amp; status&amp;nbsp;&lt;/P&gt;&lt;P&gt;If code_number on both hosted table &amp;amp; hosted feature match then return the status from the hosted feature into the corresponding status field into the hosted table.&lt;/P&gt;&lt;P&gt;I hope this makes sense, any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 21:17:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/arcade-expression-to-populate-hosted-table-field/m-p/1601583#M16403</guid>
      <dc:creator>TKSHEP</dc:creator>
      <dc:date>2025-04-01T21:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression to populate hosted table field</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/arcade-expression-to-populate-hosted-table-field/m-p/1601597#M16404</link>
      <description>&lt;P&gt;Hi, I've never done this with a hosted table, but I used a similar script based on matching fields between hosted layers to extract and then insert data from one layer to the other.&amp;nbsp; My understanding of Arcade is basic, but I adjusted the script to fit what I think you're trying to do, but again this is if they were both hosted layers, not sure how it would need to be adjusted for a hosted table:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;Hfeature&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;"Hosted Feature"&lt;/SPAN&gt;&lt;SPAN&gt;, [&lt;/SPAN&gt;&lt;SPAN&gt;'code_number'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'status'&lt;/SPAN&gt;&lt;SPAN&gt;])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;f&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;Hfeature&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;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;code_number&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;code_number&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;status&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;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;'No Status'&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;}&lt;BR /&gt;&lt;BR /&gt;Hopefully this helps or at least gets you part of the way!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Apr 2025 21:58:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/arcade-expression-to-populate-hosted-table-field/m-p/1601597#M16404</guid>
      <dc:creator>Mowgli_GIS</dc:creator>
      <dc:date>2025-04-01T21:58:30Z</dc:date>
    </item>
  </channel>
</rss>

