Hello,
We have been using the EnhancedQuery widget in WAB 2.5 and it works fine. Now we are trying it in WAB 2.12 but there is an error.
The EnhancedQuery widget executes a QueryTask and then calls publishData to send the query results to the AttributeTable. In 2.5, the query executes, the query layer is added to the LayerList and map, and the AT opens and displays the query results table. In 2.12, everything is fine until the AT opens and it says "No tables available to display". In the console there is this error: TypeError: Cannot read property 'getLayerObject' of undefined.
Strangely, when I open the LayerList and click the three dots for the query result and select "View in Attribute Table", the AT opens and displays the query results fine. So the problem is when the AT is called from the EnhancedQuery widget.