WebAppBuilder2.0 Problem with attribute table

2422
6
05-20-2016 08:34 AM
JonathanKnowles
New Contributor

We have ags portal 10.4 with maps-services referenced from a clustered ags 10.3.1 stack.

I have created a webmap on our portal site, that references layers from our ags cluster (these layers have been registered on portal as items)

The above layers are all mapservices.

I am using webAppBuilder2.0 developer edition.

When I add the webmap as the map for my application, I leave all layer options checked on the layer list

widget options. I also have left the options for the attribute table as they are out of the box.

When I launch the the application from web app builder, open the layer list, and open attribute tables

they all open fine. The problems start when I close a tab for each of the individual layers, after the first

tab is closed, in Chrome debug console i get an error "Cannot read property 'className' of null".

The remaining tabs that are visible now display what appear to be two tables, with the second screen just off the bottom of the page. Selecting a record in this table, updates the number of selected rows correctly, but pressing the 'clear selection'

does not refresh the visible table, similarly moving the map appears to update the table that has dissapeared off screen.

Also more seriously when the last remaing tab is closed and I go back to open an attribute table from the layer list

I get an error of;

" TypeError: Cannot read property 'parentNode' of null(…) "TypeError: Cannot read property 'parentNode' of null' "

and nothing happens the loading spinner appears and the attribute table section is unusable/locked.

It would appear that there is a bug with the attribute table for webAppBuilder version2.0 ? Anyone else observed this ?

Fairly new to using this to web app builder. Version2 is the only version I have used, how do I go about raising this as a bug ?

I would like to use the enhanced search widget (eSearch) https://community.esri.com/docs/DOC-1731 which is where I first noticed the issue with attribute tables, removing the eSearch widget and playing about with the out of the box attribute table leads me to believe there is a problem.

0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Jonathan,

  This does sound like a big in the AT widget and the way to get this filed as a bug is to esri tech support and report it.

0 Kudos
JonathanKnowles
New Contributor

Hi Robert

Just as a matter of interest have run your eSearch widget code against wab2.0 ?

Thanks

Jonathan

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Jonathan,

Sure I have just released my fourth version for WAB 2.0.

0 Kudos
munimelpati
New Contributor III

Hi I am also having the similar error (" TypeError: Cannot read property 'parentNode' of null(…) "TypeError: Cannot read property 'parentNode' of null' ") after adding and deleting couple of times programatically. I created a widget that generates and adds layers to the layer list. each time the tool is used, it deletes app layers (temporary layers) and adds them again. After using the application couple of times and then try to open attribute table of these layers, most of the layers are generating this error. I located the error using debug process and it is happening in the  _startQueryOnLayerTab function of attribute table at this line (table.getParent() !== tabPage) {.

Just wondering if the above problem is fixed? I am also using 2.0 version

 

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Muni,

   WAB is now at version 2.2 so I would try using the updated version.

0 Kudos
munimelpati
New Contributor III

Thank you for your prompt reply. We will update our applications. Thanks.

0 Kudos