Customizing web appbuilder widgets and queries

500
1
05-26-2021 06:22 AM
GeoSolver
New Contributor III

My task is to develop a customized version of the search widget that displays query results in the popup window instead of the default behavior which is to display the returned top address match.

I've used this guide before to write queries in custom ArcGIS JS apps.  When I reference the Query object in Widget.js of my customized search widget, I get this error in the console:

GET https://js.arcgis.com/3.36/esri/tasks/support/Query.js net::ERR_ABORTED 404

I think this is happening because Query was in a different location pre v4 of the JS API.  But it begs the question, why does web appbuilder have a dependency on ArcGIS JS API v3.36?  We've been developing in v4+ for years.

0 Kudos
1 Reply
DerekLaw
Esri Esteemed Contributor

Hi @GeoSolver,

But it begs the question, why does web appbuilder have a dependency on ArcGIS JS API v3.36?  

FYI, ArcGIS Web AppBuilder uses two different ArcGIS API for JavaScript libraries - one for 2D capabilities and one for 3D capabilities. 2D uses the JS API v3.x, while 3D uses the JS API v4.x. 

Please see this help topic, About release versions 

Hope this helps,

0 Kudos