<?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: BuildingComponentSublayer popupTemplate action displays error in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buildingcomponentsublayer-popuptemplate-action/m-p/1262725#M80423</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Thanks for your patience! We're still looking into it to see whether there is a problem with this data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Meanwhile - is your goal to show a subset of the field values or a table with all of them?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In case of the former, you can list the fields one by one under &lt;FONT face="andale mono,times" color="#808080"&gt;&lt;A href="https://next.sites.afd.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#content" target="_blank" rel="noopener"&gt;popupTemplate.content&lt;/A&gt;&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;Or, in case of the latter, you could use the &lt;A href="https://next.sites.afd.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#createPopupTemplate" target="_blank" rel="noopener"&gt;&lt;FONT face="andale mono,times"&gt;layer.createPopupTemplate&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp;method to apply the default template and add the custom button to it afterwards:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Use the default template for the layer:
layer.createPopupTemplate();
// Add the custom action button to it:
// Note: as the popup template isn't available right away, we need to wait a bit. 
layer.when(() =&amp;gt; {
  layer.popupTemplate.actions = [bimTemplateAction];
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See this app for reference:&amp;nbsp;&lt;A href="https://codepen.io/gsoosalu/pen/NWLdLpq" target="_blank"&gt;https://codepen.io/gsoosalu/pen/NWLdLpq&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note that the&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="andale mono,times"&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;outFields&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;property only defines which fields need to be available (i.e. loaded from a service) before rendering of the popup. But it doesn't automatically provide the table with all the fields.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2023 21:01:09 GMT</pubDate>
    <dc:creator>GreteSoosalu</dc:creator>
    <dc:date>2023-02-28T21:01:09Z</dc:date>
    <item>
      <title>BuildingComponentSublayer popupTemplate action displays error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buildingcomponentsublayer-popuptemplate-action/m-p/1261364#M80370</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;when trying to add a custom button to the default popup of a &lt;SPAN&gt;BuildingSceneLayer&lt;/SPAN&gt;, I get this message inside the popup :&lt;/P&gt;&lt;P&gt;"The information for this feature could not be displayed."&lt;/P&gt;&lt;P&gt;The original ESRI sample&amp;nbsp; is here : &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/building-scene-layer-slice/" target="_self"&gt;https://developers.arcgis.com/javascript/latest/sample-code/building-scene-layer-slice/&lt;/A&gt;&amp;nbsp; is shows the list of fields values in a table.&lt;/P&gt;&lt;P&gt;And the customized codepen that should have my custom button in its popup AND the list of all fields in a table:&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/Chris_Siveco/pen/RwYGbRZ" target="_self"&gt;https://codepen.io/Chris_Siveco/pen/RwYGbRZ&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The aim is to have the default table array displayed with my custom button close to the "zoom to" button.&lt;/P&gt;&lt;P&gt;Regards, Chris&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 11:34:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buildingcomponentsublayer-popuptemplate-action/m-p/1261364#M80370</guid>
      <dc:creator>ChristopheS</dc:creator>
      <dc:date>2023-02-24T11:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: BuildingComponentSublayer popupTemplate action displays error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buildingcomponentsublayer-popuptemplate-action/m-p/1261426#M80374</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/432034"&gt;@ChristopheS&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I'm looking into it and notice that the error only appears for me if the&amp;nbsp;&lt;FONT face="andale mono,times"&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;outFields:["*"]&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;property is used while creating the &lt;FONT face="andale mono,times" color="#808080"&gt;PopupTemplate&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;Could you try if it works for your purpose when you comment the rows number 82 and 123 out?&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS I'll investigate further to see what exacty is happening.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 15:08:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buildingcomponentsublayer-popuptemplate-action/m-p/1261426#M80374</guid>
      <dc:creator>GreteSoosalu</dc:creator>
      <dc:date>2023-02-24T15:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: BuildingComponentSublayer popupTemplate action displays error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buildingcomponentsublayer-popuptemplate-action/m-p/1261457#M80375</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/503459"&gt;@GreteSoosalu&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;when commenting out lines 82 and 123, there no error anymore, but also there are no table showing either. What I wish is to have both my action button and the table of the fields values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 16:55:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buildingcomponentsublayer-popuptemplate-action/m-p/1261457#M80375</guid>
      <dc:creator>ChristopheS</dc:creator>
      <dc:date>2023-02-24T16:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: BuildingComponentSublayer popupTemplate action displays error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buildingcomponentsublayer-popuptemplate-action/m-p/1262725#M80423</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for your patience! We're still looking into it to see whether there is a problem with this data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Meanwhile - is your goal to show a subset of the field values or a table with all of them?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In case of the former, you can list the fields one by one under &lt;FONT face="andale mono,times" color="#808080"&gt;&lt;A href="https://next.sites.afd.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#content" target="_blank" rel="noopener"&gt;popupTemplate.content&lt;/A&gt;&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;Or, in case of the latter, you could use the &lt;A href="https://next.sites.afd.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#createPopupTemplate" target="_blank" rel="noopener"&gt;&lt;FONT face="andale mono,times"&gt;layer.createPopupTemplate&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp;method to apply the default template and add the custom button to it afterwards:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Use the default template for the layer:
layer.createPopupTemplate();
// Add the custom action button to it:
// Note: as the popup template isn't available right away, we need to wait a bit. 
layer.when(() =&amp;gt; {
  layer.popupTemplate.actions = [bimTemplateAction];
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See this app for reference:&amp;nbsp;&lt;A href="https://codepen.io/gsoosalu/pen/NWLdLpq" target="_blank"&gt;https://codepen.io/gsoosalu/pen/NWLdLpq&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note that the&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="andale mono,times"&gt;&lt;FONT color="#808080"&gt;&lt;STRONG&gt;outFields&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;property only defines which fields need to be available (i.e. loaded from a service) before rendering of the popup. But it doesn't automatically provide the table with all the fields.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 21:01:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buildingcomponentsublayer-popuptemplate-action/m-p/1262725#M80423</guid>
      <dc:creator>GreteSoosalu</dc:creator>
      <dc:date>2023-02-28T21:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: BuildingComponentSublayer popupTemplate action displays error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buildingcomponentsublayer-popuptemplate-action/m-p/1263114#M80434</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;It is fine for me, thanks to you I could manage to have the whole table displayed with my custom action added, and then process a click to the action.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 16:28:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buildingcomponentsublayer-popuptemplate-action/m-p/1263114#M80434</guid>
      <dc:creator>ChristopheS</dc:creator>
      <dc:date>2023-03-01T16:28:27Z</dc:date>
    </item>
  </channel>
</rss>

