<?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: WAB - how to define featureLayer popupTemplate that will work same as the default in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-how-to-define-featurelayer-popuptemplate-that/m-p/858639#M11608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This 4.x sample shows what you need to do to get a table like display in a popup.&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=intro-popuptemplate" title="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=intro-popuptemplate"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=intro-popuptemplate&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2020 14:20:18 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2020-09-08T14:20:18Z</dc:date>
    <item>
      <title>WAB - how to define featureLayer popupTemplate that will work same as the default</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-how-to-define-featurelayer-popuptemplate-that/m-p/858637#M11606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From my (3D) custom widget in WAB Developer Edition 2.17, I need to define featureLayer popupTemplate that will display a table of the field names and field values,&amp;nbsp;very much like the default popup (e.g. when I click on a feature).&lt;/P&gt;&lt;P&gt;The reason is that I need to "immitate" esri default popupTemplate.&lt;/P&gt;&lt;P&gt;I will appreciate help.&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #800000;"&gt;featureLayer.popupTemplate = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; "title": `${layerTitle}`,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; "content": featurePointed =&amp;gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const dv = document.createElement("div");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let num = featureLayer.fields.length;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dv.style.height = `${num * 20}px`;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; featureLayer.fields.forEach(field =&amp;gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let row = document.createElement('li');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; row.feature = featurePointed;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; row.textContent = `Name: ${field.name} Value: ${featurePointed.graphic.attributes[field.name]}`;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dv.appendChild(row);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return dv;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the values are all "undefined", I want it to be sorted by name, and this is yet not a table....&lt;/P&gt;&lt;P&gt;I saw in esri &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#popupTemplate"&gt;Featurelayer&lt;/A&gt; doc, that by setting&amp;nbsp;Popup.defaultPopupTemplateEnabled = true I can enable the default popup, but I don't know how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note: See also &lt;A _jive_internal="true" href="https://community.esri.com/thread/259595-wab-3d-custom-widget-add-shapefile-works-but-no-pop-up"&gt;my other question&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2020 15:16:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-how-to-define-featurelayer-popuptemplate-that/m-p/858637#M11606</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-09-07T15:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - how to define featureLayer popupTemplate that will work same as the default</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-how-to-define-featurelayer-popuptemplate-that/m-p/858638#M11607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;no one has replied yet to this question.&lt;/P&gt;&lt;P&gt;Can you help, please?&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2020 08:38:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-how-to-define-featurelayer-popuptemplate-that/m-p/858638#M11607</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-09-08T08:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - how to define featureLayer popupTemplate that will work same as the default</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-how-to-define-featurelayer-popuptemplate-that/m-p/858639#M11608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This 4.x sample shows what you need to do to get a table like display in a popup.&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=intro-popuptemplate" title="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=intro-popuptemplate"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=intro-popuptemplate&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2020 14:20:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-how-to-define-featurelayer-popuptemplate-that/m-p/858639#M11608</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-09-08T14:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - how to define featureLayer popupTemplate that will work same as the default</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-how-to-define-featurelayer-popuptemplate-that/m-p/858640#M11609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;That example "knows" all field names.&lt;/P&gt;&lt;P&gt;I need this popup for my "AddShapefile" custom widget.&lt;/P&gt;&lt;P&gt;I elaborated in&amp;nbsp;&lt;A _jive_internal="true" data-containerid="1294" data-containertype="700" data-objectid="259595" data-objecttype="1" href="https://community.esri.com/thread/259595-wab-3d-custom-widget-add-shapefile-works-but-no-pop-up" style="color: #287433; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;my other question&lt;/A&gt;&amp;nbsp;that somehow, I don't know why, the shapefile is added to the scene, but the default&amp;nbsp;pop-up is NOT opened (is there a solution?)&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I am forced to CREATE a popupTemplate... As the widget code knows NOTHING about field names, I am forced to create popupTemplate that will act similar to the default popupTemplate without knowing a-priory the field names. So, that example you pointed is not relevant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html"&gt;FeatureTable &lt;/A&gt;widget, but it displaye the whole attribute table, whilst I need only for the pointed feature...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to implement definitionExpression, then the FeatureTable displayed only for the pointed feature, but all other features has been eliminated from the scene...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to query the layer in order to get the attributes of the single pointed feature, but then I need to create FeatureLayer from the result in order to activate the FeatureTable on it, but I don't know how to create FeatureLayer from the result...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question remains - How to display a table of all field values for a pointed feature (like the default popupTemplate)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me since I'm stuck...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2020 14:49:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-how-to-define-featurelayer-popuptemplate-that/m-p/858640#M11609</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-09-08T14:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - how to define featureLayer popupTemplate that will work same as the default</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-how-to-define-featurelayer-popuptemplate-that/m-p/858641#M11610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In that case then use the defaultPopupTemplateEnabled property you mentioned earlier.&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#defaultPopupTemplateEnabled" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#defaultPopupTemplateEnabled"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#defaultPopupTemplateEnabled&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this.view.popup.&lt;SPAN style="background-color: #ffffff;"&gt;defaultPopupTemplateEnabled = true;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2020 15:01:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-how-to-define-featurelayer-popuptemplate-that/m-p/858641#M11610</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-09-08T15:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - how to define featureLayer popupTemplate that will work same as the default</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-how-to-define-featurelayer-popuptemplate-that/m-p/858642#M11611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Thank you! it works!&lt;/P&gt;&lt;P&gt;Please, can you help me know if one of the other options could also be implemented:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Apply FeatureTable to one feature?&lt;/LI&gt;&lt;LI&gt;Apply FeatureTable after definitionExpression, but after displaying the table (with one feature), show all features on scene?&lt;/LI&gt;&lt;LI&gt;Is it possible to&amp;nbsp;create featureLayer from query results? How?&lt;/LI&gt;&lt;LI&gt;I tried using next code, to create thepopupTemplate manually, but the div has not been included in thepopuptamplate. How can I correct it so that the popup will contain the div?&lt;/LI&gt;&lt;/OL&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #800000;"&gt;featureLayer.popupTemplate = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp; "title": `${layerTitle} - ${featureLayer.fields.length} fields`,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;"content": featurePointed =&amp;gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;let idName = featureLayer.fields[0].name;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;let idValue = featurePointed.graphic.attributes[idName];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;const query = featureLayer.createQuery();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;query.where = `${idName} = ${idValue}`;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;query.outFields = ['*'];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;query.returnGeometry = false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;ofekUtils.log(`idName: "${idName}", idValue: "${idValue}"`);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;//featureLayer.definitionExpression = query.where;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;featureLayer.queryFeatures(query)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;.then(result =&amp;gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;resultAsText = JSON.stringify(result);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;console.log(resultAsText);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;let p = result.features[0].attributes;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;let dvContainer = document.createElement("div");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;let dvTable = document.createElement("div");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;dvContainer.setAttribute("class", "container");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;dvTable.setAttribute("id", "tableDiv");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;dvTable.style.height = `240px`;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;dvContainer.appendChild(dvTable);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;for (let key in p) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;if (p.hasOwnProperty(key)) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;let row = document.createElement('li');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;row.textContent = `${key} -- ${p[key]}`;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;dvTable.appendChild(row);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;return dvContainer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;})&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;.catch(er =&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;alert('Error executing query to get types ' + er));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; };&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2020 19:11:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-how-to-define-featurelayer-popuptemplate-that/m-p/858642#M11611</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-09-08T19:11:48Z</dc:date>
    </item>
  </channel>
</rss>

