ArcGIS widget error when selecting objects - Mendix Forum

ArcGIS widget error when selecting objects

0

Hi,

I have downloaded the ArcGIS Demo project, as well as copied over all setup to a new project, but I keep getting the below error when using the widget.

I’ve deployed my app in this link.

After deploying the app, I navigate to the page with ArcGIS widget. On selection of the first object, the map in the widget gets updated successfully. But, on selecting a different object, the widget/app throws this error.

“An error occured, please contact your system administrator.”

I checked the logs in the Mendix console, when running the app locally. The console shows the below error logs. I am not able to check further.

Appreciate all help!

ArcGIS.ArcGIS_ListenToGrid.arcGISWidget2: Error while applying context Error: ArcGIS.ArcGIS_ListenToGrid.arcGISWidget2: Error while applying context TypeError: Invalid operand to 'in': Object expected Error: ArcGIS.ArcGIS_ListenToGrid.arcGISWidget2: Error while applying context Error: ArcGIS.ArcGIS_ListenToGrid.arcGISWidget2: Error while applying context TypeError: Invalid operand to 'in': Object expected
   at Anonymous function (http://localhost:8085/mxclientsystem/mxui/mxui.js?637001691762454103:46:58380)
   at e.exports.collect (http://localhost:8085/mxclientsystem/mxui/mxui.js?637001691762454103:20:26911)
   at e.exports.applyContext (http://localhost:8085/mxclientsystem/mxui/mxui.js?637001691762454103:46:58283)
   at passContext (http://localhost:8085/mxclientsystem/mxui/mxui.js?637001691762454103:31:7710)
   at Anonymous function (http://localhost:8085/mxclientsystem/mxui/mxui.js?637001691762454103:52:98898)
   at Anonymous function (http://localhost:8085/mxclientsystem/mxui/mxui.js?637001691762454103:52:98649)
   at Anonymous function (http://localhost:8085/mxclientsystem/mxui/mxui.js?637001691762454103:52:249808)
   at Anonymous function (http://localhost:8085/mxclientsystem/mxui/mxui.js?637001691762454103:52:98557)
   at Anonymous function (http://localhost:8085/mxclientsystem/mxui/mxui.js?637001691762454103:52:249784)
   at o (http://localhost:8085/mxclientsystem/mxui/mxui.js?637001691762454103:20:26839)


MyFirstModule.DashboardArcGisWidget.arcGISWidget1: Error while applying context Error: MyFirstModule.DashboardArcGisWidget.arcGISWidget1: Error while applying context TypeError: cannot use 'in' operator to search for 'unsubscribe' in '0' 
e.exports.applyContext/</<@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:46:58386
e.exports.collect@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:20:26911
e.exports.applyContext@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:46:58283
passContext@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:31:7774
refresh/<@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:52:98905
_applyConditions/<@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:52:98675
update/</<@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:52:249815
_applyConditions/i<@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:52:98560
update/<@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:52:249791
o@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:20:26850
e.exports.collect@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:20:27033
e.exports.ready@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:46:58226
update@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:52:249763
_applyConditions@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:52:98586
refresh@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:52:98865
i@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:52:97839
_update/<@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:52:97905
callback@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:52:254046
O@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:79:25827
t.Data/this.get/<@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:79:31367
a@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:52:218318
M/<@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:52:218463
c@http://localhost:8080/mxclientsystem/mxui/mxui.js?637002669107050462:52:221434

Thanks!
Paramdeep

asked
1 answers
0

Hi Paramdeep,

which of the scenarios of the demo app are you trying to achieve?

https://arcgis100.mxapps.io/index.html?profile=desktop

I created that widget so should be able to help if it is one of these scenarios.

answered