<?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: Relationship in popup not showing after loading a webmap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-in-popup-not-showing-after-loading-a/m-p/1245000#M79761</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/426514"&gt;@Alex_Gole&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Where is the webmap and data coming from? Is it displaying relationships from non-hosted services in ArcGIS Enterprise? If that's the case, this is currently not supported.&amp;nbsp;&lt;SPAN&gt;Viewing related records is only supported for ArcGIS Online services and hosted services in ArcGIS Enterprise as outlined in the Note section on the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html" target="_self"&gt;RelationshipContent API reference&lt;/A&gt; page.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2023 17:58:52 GMT</pubDate>
    <dc:creator>LaurenBoyd</dc:creator>
    <dc:date>2023-01-03T17:58:52Z</dc:date>
    <item>
      <title>Relationship in popup not showing after loading a webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-in-popup-not-showing-after-loading-a/m-p/1243470#M79714</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am having issues loading up relationships' data on popups after loading up a web map. The Feature Layer and the related table are both in the Web Map.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;webmap.when(() =&amp;gt; {....
        const featureLayer = webmap.layers.getItemAt(0);
        const flpopup = featureLayer.popupTemplate;
        flpopup.title = "test";
        flpopup.content = [
          // Add FieldContent to popup template.
          {
            type: "fields"
          },
          {
            type: "relationship",
            // The numeric ID value for the defined relationship on the service.
            // This can be found on the service.
            relationshipId: 0,
            description:
              "Test related",
            // Display two related fire features in the list of related features.
            displayCount: 2,
            title: "Test"
          }
        ]
        console.log(flpopup)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Relationships are supposed to show here" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59199iA4E27F023E73E0DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="relate.PNG" alt="Relationships are supposed to show here" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Relationships are supposed to show here&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relationships show fine on Enterprise but not here.&lt;/P&gt;&lt;P&gt;Any idea why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Alex&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 22:32:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-in-popup-not-showing-after-loading-a/m-p/1243470#M79714</guid>
      <dc:creator>Alex_Gole</dc:creator>
      <dc:date>2022-12-22T22:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship in popup not showing after loading a webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-in-popup-not-showing-after-loading-a/m-p/1245000#M79761</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/426514"&gt;@Alex_Gole&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Where is the webmap and data coming from? Is it displaying relationships from non-hosted services in ArcGIS Enterprise? If that's the case, this is currently not supported.&amp;nbsp;&lt;SPAN&gt;Viewing related records is only supported for ArcGIS Online services and hosted services in ArcGIS Enterprise as outlined in the Note section on the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html" target="_self"&gt;RelationshipContent API reference&lt;/A&gt; page.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 17:58:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/relationship-in-popup-not-showing-after-loading-a/m-p/1245000#M79761</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2023-01-03T17:58:52Z</dc:date>
    </item>
  </channel>
</rss>

