<?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: Related Record Popups ArcGIS Enterprise Non-Hosted Feature Layers in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1236476#M79499</link>
    <description>&lt;P&gt;There it is!&amp;nbsp; I don't know how I missed that, I know I looked at the section too.&amp;nbsp; Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 18:14:01 GMT</pubDate>
    <dc:creator>Justin_Greco</dc:creator>
    <dc:date>2022-11-30T18:14:01Z</dc:date>
    <item>
      <title>Related Record Popups ArcGIS Enterprise Non-Hosted Feature Layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1236374#M79488</link>
      <description>&lt;P&gt;I was trying out the new related records popups at 4.25 using non-hosted feature layers on our ArcGIS Enterprise 10.9.1 and I am always getting 0 records for features with related records.&amp;nbsp; I have tried with a three different feature layers and get the same result.&amp;nbsp; Does this only work on hosted feature layers?&lt;/P&gt;&lt;P&gt;Here is a Codepen:&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/justingreco/pen/wvXEmop" target="_blank" rel="noopener"&gt;https://codepen.io/justingreco/pen/wvXEmop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The property in the middle of the screen should have 71 related condo units.&lt;/P&gt;&lt;P&gt;When looking at the network traffic, I never see the queryRelatedRecords call being made, like I do in the sample.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 14:44:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1236374#M79488</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2022-11-30T14:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Related Record Popups ArcGIS Enterprise Non-Hosted Feature Layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1236388#M79489</link>
      <description>&lt;P&gt;I think it's working. I just added our bus stop layer and associated routes into your code and it works.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;html lang="en"&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /&amp;gt;
    &amp;lt;title&amp;gt;Browse related records in a popup - 4.25&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      html,
      body,
      #viewDiv {
        padding: 0;
        margin: 0;
        height: 100%;
        width: 100%;
      }
    &amp;lt;/style&amp;gt;

    &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.25/esri/themes/light/main.css" /&amp;gt;
    &amp;lt;script src="https://js.arcgis.com/4.25/"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script&amp;gt;
      require([
        "esri/Map",
        "esri/layers/FeatureLayer",
        "esri/views/MapView",
        "esri/widgets/Legend",
        "esri/widgets/Expand",
        "esri/core/reactiveUtils"
      ], (Map, FeatureLayer, MapView, Legend, Expand, reactiveUtils) =&amp;gt; {
        // Create the map.
        const map = new Map({
          basemap: "gray-vector"
        });

        // Create the MapView.
        const view = new MapView({
          container: "viewDiv",
          map: map,
          center: {
            x:-112.0732, y: 33.4512
          },
          scale: 1000,
          popup: {
            defaultPopupTemplateEnabled: true,
            // Dock the popup in the top right corner.
            dockEnabled: true,
            dockOptions: {
              breakpoint: false,
              position: "top-right"
            }
          }
        });
        
        const busStops = new FeatureLayer({url: 'https://services2.arcgis.com/2t1927381mhTgWNC/ArcGIS/rest/services/ValleyMetroBusStops/FeatureServer/0', popupTemplate: {
          content: [
{
                type: "relationship", 
                relationshipId: 0,
                description:
                  "Routes associated with this bus stop",
                title: "Bus Stop Routes",
                // Order list of related records by the 'UNIT' field in ascending order.
                orderByFields: {
                  field: "Route",
                  order: "asc"
                }
              }            
          ]
        }});
     
        map.add(busStops);
        const Routes = new FeatureLayer({url: 'https://services2.arcgis.com/2t1927381mhTgWNC/ArcGIS/rest/services/ValleyMetroBusStops/FeatureServer/3'});
            map.tables.add(Routes); 

        
      });
    &amp;lt;/script&amp;gt;
  &amp;lt;/head&amp;gt;

  &amp;lt;body&amp;gt;
    &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;I'm not sure if the problem is hosted vs non-hosted, or something else. The relationship seems&amp;nbsp; strange in that you have a relationship 0 (condos) for the top layer (property), and then 4 relationships under that (3 to the first relationship (books, addresses, and photos), and 1 back to the top layer (property). Not sure if this matters but just pointing out differences between my layer with a relationship that works in your code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can access the related fields directly using something like this, so I'm thinking it's not an issue with being non-hosted:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;html lang="en"&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /&amp;gt;
    &amp;lt;title&amp;gt;Browse related records in a popup - 4.25&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      html,
      body,
      #viewDiv {
        padding: 0;
        margin: 0;
        height: 100%;
        width: 100%;
      }
    &amp;lt;/style&amp;gt;

    &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.25/esri/themes/light/main.css" /&amp;gt;
    &amp;lt;script src="https://js.arcgis.com/4.25/"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script&amp;gt;
      require([
        "esri/Map",
        "esri/layers/FeatureLayer",
        "esri/views/MapView",
        "esri/widgets/Legend",
        "esri/widgets/Expand",
        "esri/core/reactiveUtils"
      ], (Map, FeatureLayer, MapView, Legend, Expand, reactiveUtils) =&amp;gt; {
        // Create the map.
        const map = new Map({
          basemap: "gray-vector"
        });

        // Create the MapView.
        const view = new MapView({
          container: "viewDiv",
          map: map,
          center: {
            x:-78.643865, y: 35.779382
          },
          scale: 1000,
          popup: {
            defaultPopupTemplateEnabled: true,
            // Dock the popup in the top right corner.
            dockEnabled: true,
            dockOptions: {
              breakpoint: false,
              position: "top-right"
            }
          }
        });
        
        const property = new FeatureLayer({url: 'https://maps.raleighnc.gov/arcgis/rest/services/Property/Property/FeatureServer/0', popupTemplate: {
          content: [
            {
              type: "fields",
              fieldInfos: [
                { fieldName: "PIN_NUM", label: "PIN"},
                { fieldName: "SITE_ADDRESS", label: "Address"},
                { fieldName: "TOTSTRUCTS", label: "# Structures"},
                { fieldName: "relationships/0/PIN_EXT", label: "PIN Ext"},
                {fieldName: "relationships/0/PIN_NUM", label: "PIN Number"}
              ]
            },
          {
                type: "relationship", 
                relationshipId: 0,
                description:
                  "Condo units associated with this property",
                title: "Condo Units",
                // Order list of related records by the 'UNIT' field in ascending order.
                orderByFields: {
                  field: "PIN_EXT",
                  order: "asc"
                }
              }            
          ]
        }});
     
        map.add(property);
        const condos = new FeatureLayer({url: 'https://maps.raleighnc.gov/arcgis/rest/services/Property/Property/FeatureServer/1'});
            map.tables.add(condos); 

        
      });
    &amp;lt;/script&amp;gt;
  &amp;lt;/head&amp;gt;

  &amp;lt;body&amp;gt;
    &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 15:23:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1236388#M79489</guid>
      <dc:creator>JeffreyWilkerson</dc:creator>
      <dc:date>2022-11-30T15:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Related Record Popups ArcGIS Enterprise Non-Hosted Feature Layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1236415#M79493</link>
      <description>&lt;P&gt;I just published that single property and its related records to ArcGIS Online (same relationship classes) and I am seeing 71 related records.&amp;nbsp; Also tried with a hosted feature layer on Enterprise and am seeing the same as I am seeing with the non-hosted layer, 0 records.&lt;/P&gt;&lt;P&gt;Here is a pen with it pointed at an ArcGIS Online service:&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/justingreco/pen/NWzLzLg" target="_blank"&gt;https://codepen.io/justingreco/pen/NWzLzLg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 16:35:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1236415#M79493</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2022-11-30T16:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Related Record Popups ArcGIS Enterprise Non-Hosted Feature Layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1236418#M79494</link>
      <description>&lt;P&gt;Ah, so the key was adding the popupTemplate info for the related table. I think.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 16:42:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1236418#M79494</guid>
      <dc:creator>JeffreyWilkerson</dc:creator>
      <dc:date>2022-11-30T16:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Related Record Popups ArcGIS Enterprise Non-Hosted Feature Layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1236474#M79498</link>
      <description>&lt;P&gt;Currently, only hosted feature layers are supported. Support for non-hosted layers is targeted for Q1 2023. This is noted in the RelationshipContent class API reference page:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 18:11:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1236474#M79498</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2022-11-30T18:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Related Record Popups ArcGIS Enterprise Non-Hosted Feature Layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1236476#M79499</link>
      <description>&lt;P&gt;There it is!&amp;nbsp; I don't know how I missed that, I know I looked at the section too.&amp;nbsp; Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 18:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1236476#M79499</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2022-11-30T18:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Related Record Popups ArcGIS Enterprise Non-Hosted Feature Layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1273538#M80697</link>
      <description>&lt;P&gt;Has support for non-hosted layers been released?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 14:06:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1273538#M80697</guid>
      <dc:creator>AshleyPeters</dc:creator>
      <dc:date>2023-03-30T14:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Related Record Popups ArcGIS Enterprise Non-Hosted Feature Layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1273667#M80699</link>
      <description>&lt;P&gt;Due to ArcGIS Enterprise limitations, this is still on the roadmap. Support for this is now planned for Q4 2023/Q1 2024.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 17:10:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1273667#M80699</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2023-03-30T17:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Related Record Popups ArcGIS Enterprise Non-Hosted Feature Layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1490435#M84843</link>
      <description>&lt;P&gt;Looks like it is still not supported within the ArcGIS Enterprise 11.3?&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 12:11:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1490435#M84843</guid>
      <dc:creator>Jande_Wit</dc:creator>
      <dc:date>2024-06-12T12:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Related Record Popups ArcGIS Enterprise Non-Hosted Feature Layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1515829#M85220</link>
      <description>&lt;P&gt;Hi Lauren, curious if this has been added to AGOL / Enterprise yet? It would be great to use related records an ArcGIS Online map paired with a feature service. Thank you!&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 21:30:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/related-record-popups-arcgis-enterprise-non-hosted/m-p/1515829#M85220</guid>
      <dc:creator>MattEntinger2</dc:creator>
      <dc:date>2024-08-06T21:30:34Z</dc:date>
    </item>
  </channel>
</rss>

