I was trying to integrate the combinedPop.js from the information lookup sample information-lookup/combinedPopup.js at master · Esri/information-lookup · GitHub to the WAB's main.js but I've encountered the following 3 errors which stops me from going forward and I'm wondering if anyone has experience these problem before.
Line 6513: Object doesn't support property or method 'setInfoWindowOnClick'
Line 6497: Unable to get property 'on' of undefined or null reference TypeError
Line 6726: Unable to get property 'setImmediateClick' of undefined or null reference TypeError
It appears the map object is lacking some properties and methods associated with InfoWindow when it is created with WAB. The Information Lookup template uses arcgisUtils.createMap method to create the map object but the WAB uses esri/arcgis/utils 's createMap() method to create the map object.
I've attached the main.js (I've prettified it to make it more readable) code below for reference.
Ultimately, the goal is to display a popup which contains all the values from different layers (instead of scrolling thru each popup for each layer).