<?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: Does the default JavaScript API (v4) popup support related records? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95339#M8695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WAB is a Highly customized app built on top of JS API (so not vanilla at all). You can borrow code from WAB if you want the file you are looking for is the&amp;nbsp; jimu/RelatedRecordsPopupProjector.js&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the popup widgets selectedFeature property and then get the OID from the returned value.&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeature" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeature"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeature&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Oct 2017 16:36:57 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-10-16T16:36:57Z</dc:date>
    <item>
      <title>Does the default JavaScript API (v4) popup support related records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95336#M8692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if i'm overlooking things or this is not yet supported, but i'm curious if the default JavaScript API (v4) popup supports related records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following situation:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Hosted feature service on ArcGIS Online. In it three sublayers (trees, roads and vegetation). Each of the sublayers has a related table in which i store quality-inspection records (quality level, date of inspection and attachment-option). The relation is 1-m.&lt;/LI&gt;&lt;LI&gt;Hosted feature service is added to a webmap which is also stored on AGO.&lt;/LI&gt;&lt;LI&gt;In my custom front-end i&amp;nbsp;created a mapView which loads the entire webmap at once (rather than adding all layer individually)&lt;/LI&gt;&lt;LI&gt;Map draws perfectly and the popup works, but does not show the related records. Related records are however visible and editable in collector, explorer and via webappbuilder (see screenshot).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example in default JSAPI popup:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Example of record in default JSapi popup (v4)" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/380128_exampleWebmapinJSapi.PNG" style="width: 620px; height: 344px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example in Webappbuilder:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Example of record in webappbuilder" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/380132_exampleinwebappbuilder.PNG" style="width: 620px; height: 384px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i'm looking for is the option to add the functionality regarding the related records in the second screenshot to the situation in the first screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is twofold:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is this supported by default and if yes, how do i turn it on?&lt;/LI&gt;&lt;LI&gt;If this is not a default option, how would one go about and custom create this functionality?&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Oct 2017 12:42:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95336#M8692</guid>
      <dc:creator>GFlonk</dc:creator>
      <dc:date>2017-10-15T12:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Does the default JavaScript API (v4) popup support related records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95337#M8693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Q1. No this is not supported by default.&lt;/P&gt;&lt;P&gt;Q2. You will need to use QueryTask executeRelationshipQuery&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-QueryTask.html#executeRelationshipQuery" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-QueryTask.html#executeRelationshipQuery"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-QueryTask.html#executeRelationshipQuery&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you get the featureSet results from the Query you will loop through the results and generate html markup to append to the popup widgets content properly. This is &lt;STRONG&gt;not&lt;/STRONG&gt; going to be a simple one of two lines of code type customization.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 13:00:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95337#M8693</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-10-16T13:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Does the default JavaScript API (v4) popup support related records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95338#M8694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Too bad this functionality isn't default (this seems to be the case in the vanilla options within for example webappbuilder).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- - Some context:&lt;/P&gt;&lt;P&gt;I have played around with speaking to the queryRelated REST endpoint directly via hitTest, getting all related records and appending them to a custom popup (with html markup). With this there were two issues:&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;Buggy peformance when hitting multiple features&lt;/P&gt;&lt;P&gt;-&amp;nbsp; &amp;nbsp;Identity manager didnt seem to cover the authentication when getting the attachmentURL(of the related record) and displaying it&lt;/P&gt;&lt;P&gt;-- End of context&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the suggested idea of using QueryTask. In order to perform a QueryTask one would need an OBJECTID for the current selected feature (correct me if i'm wrong). Is there any other way to do this other than using hitTest?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/380196_Naamloos.png" style="width: 736px; height: 203px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 16:25:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95338#M8694</guid>
      <dc:creator>GFlonk</dc:creator>
      <dc:date>2017-10-16T16:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Does the default JavaScript API (v4) popup support related records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95339#M8695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WAB is a Highly customized app built on top of JS API (so not vanilla at all). You can borrow code from WAB if you want the file you are looking for is the&amp;nbsp; jimu/RelatedRecordsPopupProjector.js&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the popup widgets selectedFeature property and then get the OID from the returned value.&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeature" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeature"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeature&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 16:36:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95339#M8695</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-10-16T16:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Does the default JavaScript API (v4) popup support related records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95340#M8696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vanilla might have been the wrong term there. The complexity of the sourcefile you linked is way beyond my understanding &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selectedFeature property looks like the thing I need. I was able to implement it partly. I'm now getting an object returned as the selectedFeature after an on-click action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two things:&lt;/P&gt;&lt;P&gt;&amp;nbsp;-&amp;nbsp;&amp;nbsp;&amp;nbsp;To get the current selected feature I would need some kind of event listener. view.on("click", function(event) doesn't seem like the right one.&lt;/P&gt;&lt;P&gt;-&amp;nbsp; Trying to access the OBJECTID via&amp;nbsp;view.popup.selectedFeature.attributes.OBJCTID gives me an error (also via data.getAttributes("OBJECTID")). How would one access this object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/380222_Naamloos1.png" style="width: 693px; height: 397px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 19:04:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95340#M8696</guid>
      <dc:creator>GFlonk</dc:creator>
      <dc:date>2017-10-16T19:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Does the default JavaScript API (v4) popup support related records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95341#M8697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is ObjectID part of the attributes in you console above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 19:13:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95341#M8697</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-10-16T19:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Does the default JavaScript API (v4) popup support related records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95342#M8698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, see screenshot (erased some values in paint due to privacyreasons).&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;view.popup.selectedFeature.attributes also gives an error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/380224_objectid.png" style="height: 700px;" width="390" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 19:28:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95342#M8698</guid>
      <dc:creator>GFlonk</dc:creator>
      <dc:date>2017-10-16T19:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Does the default JavaScript API (v4) popup support related records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95343#M8699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;G,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Sounds like a timing issue. The selected feature is undefined at the time when you attempt to get the attributes property. So you need to use WatchUtils to watch the popups selectedFeature property for being defined before you attempt to access the attributes property:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenDefined" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenDefined"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenDefined&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 19:38:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95343#M8699</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-10-16T19:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Does the default JavaScript API (v4) popup support related records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95344#M8700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This still gives strange results. Sometimes, when clicking one feature, I get a burst of console logs (some of which are null, often one more than the previous burst). Also view.popup.attributes still doesnt work. Feels indeed like a timing thing, as all the logs happen before the popup draws.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/380233_Naamloos3.png" style="width: 620px; height: 551px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 20:58:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95344#M8700</guid>
      <dc:creator>GFlonk</dc:creator>
      <dc:date>2017-10-16T20:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Does the default JavaScript API (v4) popup support related records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95345#M8701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;G,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; There is not need to have the watch occur inside a view click event. Just add this after you create your view:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;watchUtils&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;when&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;popup&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"selectedFeature"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;evt&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;info&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;popup&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;selectedFeature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;attributes&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:38:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95345#M8701</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-10T23:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Does the default JavaScript API (v4) popup support related records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95346#M8702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked like a charm! Thank you. I expanded a little bit on it and am now getting the related records as a response after selectedFeature changes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/380613_Naamloos24.png" style="width: 620px; height: 237px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I used (might not be pretty, but it works):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;watchUtils&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;when&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;popup&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"selectedFeature"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;evt&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;popup&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;selectedFeature&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; url &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;popup&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;selectedFeature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; layerId &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;popup&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;selectedFeature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layerId&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; fullURL &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; url &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"/"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; layerId&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; objectID &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;popup&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;selectedFeature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;attributes&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OBJECTID&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; queryTask &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;QueryTask&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;url&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; fullURL
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;relationQuery &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;RelationshipQuery&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;objectIds&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;objectID&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;outFields&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"*"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;relationshipId&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;queryTask&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;executeRelationshipQuery&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;relationQuery&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;then&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;results&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;results&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I've got to do is append this to the content property of the popup.&lt;/P&gt;&lt;P&gt;I'll keep this thread updated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:38:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95346#M8702</guid>
      <dc:creator>GFlonk</dc:creator>
      <dc:date>2021-12-10T23:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Does the default JavaScript API (v4) popup support related records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95347#M8703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;I like to use dojo dom-construct for building html elements and then domConstruct.place to add them. You can use dojo query to get the infoWindow dim node to append to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 04:46:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95347#M8703</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-10-19T04:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Does the default JavaScript API (v4) popup support related records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95348#M8704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a road map / timeline when editing related records will be possible with the JS API v4?&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/2036"&gt;Jim Barry&lt;/A&gt;‌ or anyone else from the dev-team?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 10:45:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95348#M8704</guid>
      <dc:creator>AnninaHirschiWyss</dc:creator>
      <dc:date>2020-03-02T10:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Does the default JavaScript API (v4) popup support related records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95349#M8705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Annina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Just FYI Jim is not on the development team.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 13:20:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95349#M8705</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-03-02T13:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Does the default JavaScript API (v4) popup support related records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95350#M8706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Robert, I just took his name because he figures as responsible for this space. Maybe he can transfer the question to someone in charge &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 13:42:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95350#M8706</guid>
      <dc:creator>AnninaHirschiWyss</dc:creator>
      <dc:date>2020-03-02T13:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Does the default JavaScript API (v4) popup support related records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95351#M8707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the delay on this. Checking with the dev team to see what they say.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 20:09:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95351#M8707</guid>
      <dc:creator>JimBarry</dc:creator>
      <dc:date>2020-03-11T20:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Does the default JavaScript API (v4) popup support related records?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95352#M8708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's on our plan for 2020. Might not be the next release, but something being worked on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 21:51:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-the-default-javascript-api-v4-popup-support/m-p/95352#M8708</guid>
      <dc:creator>JimBarry</dc:creator>
      <dc:date>2020-03-11T21:51:58Z</dc:date>
    </item>
  </channel>
</rss>

