<?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 Adding layer to Attribute table widget in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/adding-layer-to-attribute-table-widget/m-p/1060907#M20874</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to ask for help with a strange behaviour i noticed in my appliaction. I'm using WAB developer edition. The application is base on Web map which has no layers only backgroud. With a custom widget I am adding four layers. Also i am using default Attribute table widget.&lt;/P&gt;&lt;P&gt;First problem is that there is inconsistency with the result. Only one layer shows up. And almost every time a reload the application a different layer in in Attribute Table.&lt;/P&gt;&lt;P&gt;I'm trying to use this sample to send a layer to attribute table: &lt;A href="https://developers.arcgis.com/web-appbuilder/sample-code/send-a-layer-to-attribute-table-widget.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/web-appbuilder/sample-code/send-a-layer-to-attribute-table-widget.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;At the moment I always recieve an error, that I'm unable to addLayerToTable. I found out that the problem is with the resource manager. Or to be exact the layer does not pass this check:&lt;/P&gt;&lt;DIV&gt;if (supportTableInfo.&lt;STRONG&gt;isSupportedLayer&lt;/STRONG&gt;) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._resourceManager.addLayerInfo(layerInfoSelf);&lt;BR /&gt;}&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;FONT face="helvetica"&gt;That is correct behaviour, because it is&lt;/FONT&gt; &lt;SPAN&gt;"ArcGISDynamicMapServiceLayer" &lt;/SPAN&gt;&lt;FONT face="helvetica"&gt;and that does not fall in the LayerInfo.js check _getLayerTypesOfSupportTable.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="helvetica"&gt;I am confused why it is possible to manage to have correct layer in Attribute table (by just realoading), but I am unable to add the same layer from one widget to another using described sample. &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="helvetica"&gt;To summarize my question. What should be the standard process to include layers in Attribute table when I have to add the layers dynamically (they must not be in the webmap beforehand)?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="helvetica"&gt;Thanks!&lt;/FONT&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 24 May 2021 12:07:02 GMT</pubDate>
    <dc:creator>MartinPorteš</dc:creator>
    <dc:date>2021-05-24T12:07:02Z</dc:date>
    <item>
      <title>Adding layer to Attribute table widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/adding-layer-to-attribute-table-widget/m-p/1060907#M20874</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to ask for help with a strange behaviour i noticed in my appliaction. I'm using WAB developer edition. The application is base on Web map which has no layers only backgroud. With a custom widget I am adding four layers. Also i am using default Attribute table widget.&lt;/P&gt;&lt;P&gt;First problem is that there is inconsistency with the result. Only one layer shows up. And almost every time a reload the application a different layer in in Attribute Table.&lt;/P&gt;&lt;P&gt;I'm trying to use this sample to send a layer to attribute table: &lt;A href="https://developers.arcgis.com/web-appbuilder/sample-code/send-a-layer-to-attribute-table-widget.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/web-appbuilder/sample-code/send-a-layer-to-attribute-table-widget.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;At the moment I always recieve an error, that I'm unable to addLayerToTable. I found out that the problem is with the resource manager. Or to be exact the layer does not pass this check:&lt;/P&gt;&lt;DIV&gt;if (supportTableInfo.&lt;STRONG&gt;isSupportedLayer&lt;/STRONG&gt;) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._resourceManager.addLayerInfo(layerInfoSelf);&lt;BR /&gt;}&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;FONT face="helvetica"&gt;That is correct behaviour, because it is&lt;/FONT&gt; &lt;SPAN&gt;"ArcGISDynamicMapServiceLayer" &lt;/SPAN&gt;&lt;FONT face="helvetica"&gt;and that does not fall in the LayerInfo.js check _getLayerTypesOfSupportTable.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="helvetica"&gt;I am confused why it is possible to manage to have correct layer in Attribute table (by just realoading), but I am unable to add the same layer from one widget to another using described sample. &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="helvetica"&gt;To summarize my question. What should be the standard process to include layers in Attribute table when I have to add the layers dynamically (they must not be in the webmap beforehand)?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="helvetica"&gt;Thanks!&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 May 2021 12:07:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/adding-layer-to-attribute-table-widget/m-p/1060907#M20874</guid>
      <dc:creator>MartinPorteš</dc:creator>
      <dc:date>2021-05-24T12:07:02Z</dc:date>
    </item>
  </channel>
</rss>

