<?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 Pulling in information for related tables into pop ups using globalids and parentglobalids in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/pulling-in-information-for-related-tables-into-pop/m-p/1145701#M44465</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to using expressions and arcade with popups and I am finding I am pretty lost going through some of the other posts. I have a related table that using parent global ids and I want to display those attributes in the related table in the popup. When I am expressions window to create a new one, I find the related table under the Feature Layer (the main data in is the RICHAMPS layer, and the related table is Consequence_Table as shown below). When I look under the $feature section under the global tab in the expressions windo, I do not see the related table at all. Therefore, I am getting confused, because I think I need to replace $feature with $database in some of the examples I have seen?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KyleMcElroy_0-1645205917005.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34357iD85C34287C9C9D52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KyleMcElroy_0-1645205917005.png" alt="KyleMcElroy_0-1645205917005.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If anyone knows of the best posts that might help with this, I would appreciate it. As I said, I have tried searching and keep getting more confused.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Feb 2022 17:46:31 GMT</pubDate>
    <dc:creator>KyleMcElroy</dc:creator>
    <dc:date>2022-02-18T17:46:31Z</dc:date>
    <item>
      <title>Pulling in information for related tables into pop ups using globalids and parentglobalids</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pulling-in-information-for-related-tables-into-pop/m-p/1145701#M44465</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to using expressions and arcade with popups and I am finding I am pretty lost going through some of the other posts. I have a related table that using parent global ids and I want to display those attributes in the related table in the popup. When I am expressions window to create a new one, I find the related table under the Feature Layer (the main data in is the RICHAMPS layer, and the related table is Consequence_Table as shown below). When I look under the $feature section under the global tab in the expressions windo, I do not see the related table at all. Therefore, I am getting confused, because I think I need to replace $feature with $database in some of the examples I have seen?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KyleMcElroy_0-1645205917005.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34357iD85C34287C9C9D52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KyleMcElroy_0-1645205917005.png" alt="KyleMcElroy_0-1645205917005.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If anyone knows of the best posts that might help with this, I would appreciate it. As I said, I have tried searching and keep getting more confused.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 17:46:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pulling-in-information-for-related-tables-into-pop/m-p/1145701#M44465</guid>
      <dc:creator>KyleMcElroy</dc:creator>
      <dc:date>2022-02-18T17:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling in information for related tables into pop ups using globalids and parentglobalids</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pulling-in-information-for-related-tables-into-pop/m-p/1145707#M44466</link>
      <description>&lt;P&gt;At the bottom of the &lt;STRONG&gt;$feature&lt;/STRONG&gt; section, you should see &lt;STRONG&gt;Related&lt;/STRONG&gt; &lt;STRONG&gt;Records&lt;/STRONG&gt;, and the other table will be in there.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1645206758651.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34359iDD3A6931436F3E3B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1645206758651.png" alt="jcarlson_0-1645206758651.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By bringing in your related table this way, it will only grab the records related to the current feature.&lt;/P&gt;&lt;P&gt;One thing to consider: if you have multiple records in the related table, you'll need some way to deal with multiple values. Are you wanting to pick one in particular, or join them together somehow?&lt;/P&gt;&lt;P&gt;The easiest method is to just use &lt;STRONG&gt;First&lt;/STRONG&gt;.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var related = FeatureSetByRelationshipName($feature, 'relationship-name')

var rel_feature = First(related)

return rel_feature['some-attribute']&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Feb 2022 17:55:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pulling-in-information-for-related-tables-into-pop/m-p/1145707#M44466</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-02-18T17:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling in information for related tables into pop ups using globalids and parentglobalids</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pulling-in-information-for-related-tables-into-pop/m-p/1145715#M44467</link>
      <description>&lt;P&gt;Thank you for the fast response!&lt;/P&gt;&lt;P&gt;Unfortunately, I do not see related records at the bottom of the &lt;STRONG&gt;$feature&lt;/STRONG&gt; section.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KyleMcElroy_1-1645207254552.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34361iF44C495312D3C755/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KyleMcElroy_1-1645207254552.png" alt="KyleMcElroy_1-1645207254552.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is weird because I know they are there as there is a link to table in the pop up as I have the "show related data" checked in the configuration.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KyleMcElroy_0-1645207217255.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34360i9B116B806B149AE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KyleMcElroy_0-1645207217255.png" alt="KyleMcElroy_0-1645207217255.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hence my main confusion. I have related records but something seems to be off to configure expressions?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 18:03:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pulling-in-information-for-related-tables-into-pop/m-p/1145715#M44467</guid>
      <dc:creator>KyleMcElroy</dc:creator>
      <dc:date>2022-02-18T18:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling in information for related tables into pop ups using globalids and parentglobalids</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pulling-in-information-for-related-tables-into-pop/m-p/1145734#M44468</link>
      <description>&lt;P&gt;Strange! Well, are you still able to use the "FeatureSetByRelationshipName" function? The relationship name tends to be something like &amp;lt;source layer name&amp;gt;_&amp;lt;destination layer name&amp;gt;, but you can find it in the service's definition on the REST directory page for your service.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1645208865322.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34366iD574FE4CDEEA85D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1645208865322.png" alt="jcarlson_0-1645208865322.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 18:27:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pulling-in-information-for-related-tables-into-pop/m-p/1145734#M44468</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-02-18T18:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling in information for related tables into pop ups using globalids and parentglobalids</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pulling-in-information-for-related-tables-into-pop/m-p/1146491#M44504</link>
      <description>&lt;P&gt;So I cannot see the "FeatureSetByRelationshipName" function, and I think this has something to with how this service is set up (I forget to mention that I am working with ArcGIS Enterprise).&lt;/P&gt;&lt;P&gt;I didn't do this part so my tech speak may be off, but I believe everything was set up on the server:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KyleMcElroy_0-1645543172850.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34619iA6EFB02B29734205/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KyleMcElroy_0-1645543172850.png" alt="KyleMcElroy_0-1645543172850.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then we use Survey123 to fill out the layer and table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KyleMcElroy_1-1645543236762.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/34620iED5966D408005D43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KyleMcElroy_1-1645543236762.png" alt="KyleMcElroy_1-1645543236762.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now looking more into this more, which this post seems like it might be useful (&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/access-a-field-value-in-a-layer-that-is-outside/td-p/27619" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-questions/access-a-field-value-in-a-layer-that-is-outside/td-p/27619&lt;/A&gt;) in that I may not be able to do what I want.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 15:22:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pulling-in-information-for-related-tables-into-pop/m-p/1146491#M44504</guid>
      <dc:creator>KyleMcElroy</dc:creator>
      <dc:date>2022-02-22T15:22:34Z</dc:date>
    </item>
  </channel>
</rss>

