<?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 add related table to popup in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-related-table-to-popup/m-p/728527#M67591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;Am trying to work out how to populate a popup with values from a related table using this as an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="" href="https://developers.arcgis.com/javascript/3/jssamples/popup_relatedrecords.html" title="https://developers.arcgis.com/javascript/3/jssamples/popup_relatedrecords.html"&gt;Popup with related fields | ArcGIS API for JavaScript 3.27&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially, what I am trying to do is display a list of species (from a related table) that occur within a polygon and list these in the popup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function loadTable(){&lt;BR /&gt; var popupTemplate = new PopupTemplate({&lt;BR /&gt; "title": "Site with species",&lt;BR /&gt; "fieldInfos": [{&lt;BR /&gt; "fieldName": "NatName"&lt;BR /&gt; }, {&lt;BR /&gt; "fieldName": "relationships/0/SitNational",&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "fieldName": "relationships/0/Common_name",&lt;BR /&gt;}, &lt;BR /&gt; ],&lt;BR /&gt; "description": " there are these species: ",&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see the species returned in web developer but am struggling to find a way of listing these in the popup. Is it even possible to use this method to achieve this?&lt;/P&gt;&lt;P&gt;Any advice or suggestions most welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2019 15:51:16 GMT</pubDate>
    <dc:creator>MarkBalman</dc:creator>
    <dc:date>2019-01-23T15:51:16Z</dc:date>
    <item>
      <title>add related table to popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-related-table-to-popup/m-p/728527#M67591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;Am trying to work out how to populate a popup with values from a related table using this as an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="" href="https://developers.arcgis.com/javascript/3/jssamples/popup_relatedrecords.html" title="https://developers.arcgis.com/javascript/3/jssamples/popup_relatedrecords.html"&gt;Popup with related fields | ArcGIS API for JavaScript 3.27&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially, what I am trying to do is display a list of species (from a related table) that occur within a polygon and list these in the popup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function loadTable(){&lt;BR /&gt; var popupTemplate = new PopupTemplate({&lt;BR /&gt; "title": "Site with species",&lt;BR /&gt; "fieldInfos": [{&lt;BR /&gt; "fieldName": "NatName"&lt;BR /&gt; }, {&lt;BR /&gt; "fieldName": "relationships/0/SitNational",&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "fieldName": "relationships/0/Common_name",&lt;BR /&gt;}, &lt;BR /&gt; ],&lt;BR /&gt; "description": " there are these species: ",&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see the species returned in web developer but am struggling to find a way of listing these in the popup. Is it even possible to use this method to achieve this?&lt;/P&gt;&lt;P&gt;Any advice or suggestions most welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 15:51:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-related-table-to-popup/m-p/728527#M67591</guid>
      <dc:creator>MarkBalman</dc:creator>
      <dc:date>2019-01-23T15:51:16Z</dc:date>
    </item>
  </channel>
</rss>

