So when I add this layer to Robert Scheitlin, GISP's esearch widget... and I set the following attributes...
Spatial Search : Check
Allow CSV Export : Check
Add Result as Operational Layer : Check
Use Popup from : Webmap
Then I set the Expression to search by Acct_Num and I select UNIQUE... It spins, even in settings. Nothing I do releases that spinney wheel.
Any ideas?
Brain,
What error do you see in your browsers web console?
None. It just stops working.
I put a sandbox version up to test and you can see... when you click on eSearch EVERY search should be UNIQUE but they default to a Value entry that doesn't even work?
Brain,
I get a whole slew of error when accessing that site.
None of those come up in my console!?!?
AND that is the wrong REST service folder... it shouldn't be StarterMaps but rather JSAPI?!
Hmm. You should check that your latest changes are posted to your sandbox then.
Ok...
So I have deleted the App from WAB.
I have taken the old MXD, which had multiple layers added because this was used to power our current Flex map version, and removed everything BUT the permit layers.
I have saved this modified MXD with a different name.
I have created a NEW REST Service from this MXD.
I downloaded the newest version of eSearch.
I have added the eSearch widget.
I tried to add the feature layer from our ArcGIS Server : http://maps.cityoftulsa.org/gis/rest/services/JSAPI/extPermits_Final/MapServer/0
Here is the error I get.
Load widgetOnScreen: 311.699ms
js.arcgis.com/3.17/init.js:89 Error: Failed to execute query.
at Object.g.load (js.arcgis.com/3.17/init.js:857)
at js.arcgis.com/3.17/init.js:87
at c (js.arcgis.com/3.17/init.js:103)
at d (js.arcgis.com/3.17/init.js:103)
at b.Deferred.resolve.callback (js.arcgis.com/3.17/init.js:105)
at c (js.arcgis.com/3.17/init.js:104)
at d (js.arcgis.com/3.17/init.js:103)
at b.Deferred.resolve.callback (js.arcgis.com/3.17/init.js:105)
at js.arcgis.com/3.17/init.js:92
at h (js.arcgis.com/3.17/init.js:107)
w @ js.arcgis.com/3.17/init.js:89
js.arcgis.com/3.17/init.js:89 Error: Failed to execute query.
at Object.g.load (js.arcgis.com/3.17/init.js:857)
at js.arcgis.com/3.17/init.js:87
at c (js.arcgis.com/3.17/init.js:103)
at d (js.arcgis.com/3.17/init.js:103)
at b.Deferred.resolve.callback (js.arcgis.com/3.17/init.js:105)
at c (js.arcgis.com/3.17/init.js:104)
at d (js.arcgis.com/3.17/init.js:103)
at b.Deferred.resolve.callback (js.arcgis.com/3.17/init.js:105)
at js.arcgis.com/3.17/init.js:92
at h (js.arcgis.com/3.17/init.js:107)
w @ js.arcgis.com/3.17/init.js:89
js.arcgis.com/3.17/init.js:89 Error: Failed to execute query.
at Object.g.load (js.arcgis.com/3.17/init.js:857)
at js.arcgis.com/3.17/init.js:87
at c (js.arcgis.com/3.17/init.js:103)
at d (js.arcgis.com/3.17/init.js:103)
at b.Deferred.resolve.callback (js.arcgis.com/3.17/init.js:105)
at c (js.arcgis.com/3.17/init.js:104)
at d (js.arcgis.com/3.17/init.js:103)
at b.Deferred.resolve.callback (js.arcgis.com/3.17/init.js:105)
at js.arcgis.com/3.17/init.js:92
at h (js.arcgis.com/3.17/init.js:107)
w @ js.arcgis.com/3.17/init.js:89
js.arcgis.com/3.17/init.js:89 Error: Failed to execute query.
at Object.g.load (js.arcgis.com/3.17/init.js:857)
at js.arcgis.com/3.17/init.js:87
at c (js.arcgis.com/3.17/init.js:103)
at d (js.arcgis.com/3.17/init.js:103)
at b.Deferred.resolve.callback (js.arcgis.com/3.17/init.js:105)
at c (js.arcgis.com/3.17/init.js:104)
at d (js.arcgis.com/3.17/init.js:103)
at b.Deferred.resolve.callback (js.arcgis.com/3.17/init.js:105)
at js.arcgis.com/3.17/init.js:92
at h (js.arcgis.com/3.17/init.js:107)
w @ js.arcgis.com/3.17/init.js:89
js.arcgis.com/3.17/init.js:89 Error: Failed to execute query.
at Object.g.load (js.arcgis.com/3.17/init.js:857)
at js.arcgis.com/3.17/init.js:87
at c (js.arcgis.com/3.17/init.js:103)
at d (js.arcgis.com/3.17/init.js:103)
at b.Deferred.resolve.callback (js.arcgis.com/3.17/init.js:105)
at c (js.arcgis.com/3.17/init.js:104)
at d (js.arcgis.com/3.17/init.js:103)
at b.Deferred.resolve.callback (js.arcgis.com/3.17/init.js:105)
at js.arcgis.com/3.17/init.js:92
at h (js.arcgis.com/3.17/init.js:107)
w @ js.arcgis.com/3.17/init.js:89
js.arcgis.com/3.17/init.js:113 TypeError: this._showDijit is not a function
at Object.<anonymous> (:3344/webappbuilder/apps/23/widgets/eSearch/setting/SingleValueEdit.js?wab_dv=2.1:1564)
at Object.<anonymous> (js.arcgis.com/3.17/init.js:63)
at Object.c [as onpagingFault] (js.arcgis.com/3.17/init.js:119)
at Function.h.emit (js.arcgis.com/3.17/init.js:124)
at Function.h.emit (js.arcgis.com/3.17/init.js:125)
at Object.emit (js.arcgis.com/3.17/init.js:117)
at Object.onSearchError (:3344/webappbuilder/apps/23/widgets/eSearch/PagingQueryTask.js?wab_dv=2.1:244)
at js.arcgis.com/3.17/init.js:63
at Object._errorHandler (js.arcgis.com/3.17/init.js:1969)
at js.arcgis.com/3.17/init.js:63 "TypeError: this._showDijit is not a function
at Object.<anonymous> (http://it00069395w81.main.cityoftulsa.org:3344/webappbuilder/apps/23/widgets/eSearch/setting/SingleValueEdit.js?wab_dv=2.1:1564:20)
at Object.<anonymous> (http://js.arcgis.com/3.17/init.js:63:209)
at Object.c [as onpagingFault] (http://js.arcgis.com/3.17/init.js:119:79)
at Function.h.emit (http://js.arcgis.com/3.17/init.js:124:331)
at Function.h.emit (http://js.arcgis.com/3.17/init.js:125:443)
at Object.emit (http://js.arcgis.com/3.17/init.js:117:218)
at Object.onSearchError (http://it00069395w81.main.cityoftulsa.org:3344/webappbuilder/apps/23/widgets/eSearch/PagingQueryTask.js?wab_dv=2.1:244:14)
at http://js.arcgis.com/3.17/init.js:63:209
at Object._errorHandler (http://js.arcgis.com/3.17/init.js:1969:54)
at http://js.arcgis.com/3.17/init.js:63:209"
It won't even work in the WAB now... Frustrated.
Brain,
Did you update your sandbox app? http://maps.cityoftulsa.org/sandbox/permits/
I still see errors where the app is using:
maps2/cotgis/rest/services/LGDM/LGM_CouncilDistricts/MapServer/0
There is still a cross-origin resource sharing error, which can only happen when someone tries to access the map from another domain.