POST
|
Hi Lucas, I got it. I made a typo which caused the error. Thanks
... View more
11-19-2019
01:00 PM
|
0
|
0
|
1129
|
POST
|
The service in the example you provided the table has an objectid. Ours does not and that may cause problems. Here is the error. qml: Suggest like '%2%' and LayerField like 'Parcels-Site_Address' ArcGIS.AppFramework.Player: Object: QObject(0x0) Text: "file:///C:/Users/huntj/ArcGIS/AppStudio/Apps/6154a8cf097142b38e223b3d9abc999d/MonTopo2.qml:351: TypeError: Cannot read property 'iterator' of null" file:///C:/Users/huntj/ArcGIS/AppStudio/Apps/6154a8cf097142b38e223b3d9abc999d/MonTopo2.qml:351: TypeError: Cannot read property 'iterator' of null
... View more
11-19-2019
11:22 AM
|
0
|
0
|
1129
|
POST
|
Hi Lucas, That was the first thing I tried and apparently since the table has no geometry that doesn't work.
... View more
11-19-2019
10:41 AM
|
0
|
1
|
1129
|
POST
|
I have a standalone table in an ArcGIS rest service that I need to query. The service has security requiring a username and password. I used this table in 10.2.6 applications using credentials and querytask without a problem. Is there a way in runtime to query this table? Do I have to use NetworkRequest, which is more complicated with tokens?
... View more
11-18-2019
09:40 AM
|
0
|
5
|
1188
|
POST
|
I wrote a recursive function to read through our large complicated service. I get this error "TypeError: Cannot read property 'sublayers' of null". It will error out at the same place every time, until I add a piece of code anywhere in the program then it will stop somewhere else or go through all the way. It is predictably unpredictable. onLoadStatusChanged: { console.log(mapImageLayer.mapImageSublayers.count) if(mapImageLayer.mapImageSublayers.count > 0){ for (var x = 0; x < mapImageLayer.mapImageSublayers.count; x++) { console.log("x = " + x.toString()) console.log("Outside: " + mapImageLayer.mapImageSublayers.get(x).name) if(mapImageLayer.mapImageSublayers.get(x).sublayers.count > 0){ iname(mapImageLayer.mapImageSublayers.get(x)) } } } } function iname(thislayer) { for (var y =0; y < thislayer.sublayers.count; y++) { console.log(thislayer.subLayerContents .name) console.log(thislayer.subLayerContents .sublayerId) console.log("y = " + y.toString()) console.log("count= " + thislayer.subLayerContents .sublayers.count) if(thislayer.subLayerContents .sublayers.count > 0){ console.log(thislayer.subLayerContents .name) thislayer.subLayerContents .visible=true }else{ thislayer.subLayerContents .visible=false } if(thislayer.subLayerContents .sublayers.count > 0){ iname(thislayer.subLayerContents ) } } } Console: qml: 9 qml: x = 0 qml: Outside: Districts qml: Community College qml: 1 qml: y = 0 qml: count= 0 qml: Supervisorial qml: 2 qml: y = 1 qml: count= 0 qml: Elementary School qml: 3 qml: y = 2 qml: count= 0 qml: High School qml: 4 qml: y = 3 qml: count= 0 qml: Unified School qml: 5 qml: y = 4 qml: count= 0 qml: Voter Precincts qml: 6 qml: y = 5 qml: count= 0 qml: x = 1 qml: Outside: OC Development Services qml: GENERAL PLAN qml: 8 qml: y = 0 qml: count= 0 qml: Zoning qml: 9 qml: y = 1 qml: count= 0 ArcGIS.AppFramework.Player: Object: QObject(0x0) Text: "file:///C:/Users/huntj/ArcGIS/AppStudio/Apps/6154a8cf097142b38e223b3d9abc999d/MonTopo2.qml:704: TypeError: Cannot read property 'sublayers' of null" file:///C:/Users/huntj/ArcGIS/AppStudio/Apps/6154a8cf097142b38e223b3d9abc999d/MonTopo2.qml:704: TypeError: Cannot read property 'sublayers' of null
... View more
06-07-2019
11:10 AM
|
0
|
1
|
1819
|
POST
|
I got it. I had made some mistakes with the paths in iOS.
... View more
08-30-2017
11:05 AM
|
0
|
0
|
310
|
POST
|
I'm trying capture the screen in iOS but it's failing. On the desktop it works fine. I'm using path = AppFramework.standardPaths.defaultFolder(StandardPaths.PicturesLocation).path;
to set the file location.
... View more
08-29-2017
07:52 AM
|
0
|
1
|
419
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|