|
POST
|
I'm using Robert Scheitlin's custom Popup Panel widget (v2.1.1) in Web AppBuilder. in my web map I have added a map service from the web (not in basemap) and there are several layers in it. I have popups enabled on two of the layers: addresses (point) and parcels (polygon). The addresses are ordered above the parcels but when I click on an address in the map, the parcel is always displayed in the popup first and the address is second. Doesn't seem to matter which layer has the popup enabled first, Web AppBiulder always starts by displaying the parcel attributes. I want to show the address first, then the parcel. How can I specify the layer order of the results that display in the popup?
... View more
09-09-2016
03:28 PM
|
0
|
3
|
3589
|
|
POST
|
The Noun Project is also a good source for icons. There's also a surprising number of unicode characters that make good icons; search for them at &what.
... View more
09-09-2016
03:09 PM
|
2
|
0
|
10668
|
|
POST
|
Is there an advantage to using the csv module over just creating a file with .csv extension and writing lines to it like you did in this example? Your way seems much simpler.
... View more
09-08-2016
04:10 PM
|
0
|
1
|
2823
|
|
POST
|
The Noun Project is also a good source for icons. There's also a surprising number of decent unicode characters that make good icons; search for them at &what.
... View more
09-08-2016
10:18 AM
|
1
|
0
|
14133
|
|
POST
|
Thanks for the suggestion but I was hoping for an on the fly method without having to make a new field.
... View more
09-01-2016
01:23 PM
|
1
|
0
|
2463
|
|
POST
|
We've got some feature classes with editor tracking enabled using UTC time. Is there a way to have ArcMap (10.2.2) show the datetime values from the editor tracking fields in local time? I tried searching for an answer but everything was just about the time slider and ArcGIS Online.
... View more
09-01-2016
11:10 AM
|
1
|
4
|
4558
|
|
DOC
|
I think it has to do with the relationship that it participates in. I originally had M:N and I figured that was messing it up but then I tried 1:M and it still had the same behavior. If I don't use the related data, the popup panel works fine on the first click. Here's what the Chrome console logged on the first click. init.js:1945 esri.layers.FeatureLayer: unable to find 'relationships/0/FULL_ADDRESS' field in the layer 'fields' information [url: http://servername:6080/arcgis/rest/services/WAM/relTest/MapServer/1] init.js:113 TypeError: Cannot read property 'relationships' of undefined(…) "TypeError: Cannot read property 'relationships' of undefined at _queryRelatedLayer (http://js.arcgis.com/3.17/init.js:2065:199) at _queryRelatedLayers (http://js.arcgis.com/3.17/init.js:2064:447) at _getRelatedRecords (http://js.arcgis.com/3.17/init.js:2061:378) at getComponents (http://js.arcgis.com/3.17/init.js:2045:367) at startup (http://js.arcgis.com/3.17/init.js:2069:73) at http://js.arcgis.com/3.17/init.js:412:229 at Object.forEach (http://js.arcgis.com/3.17/init.js:70:383) at _startChildren (http://js.arcgis.com/3.17/init.js:412:132) at http://js.arcgis.com/3.17/init.js:419:460 at h (http://js.arcgis.com/3.17/init.js:107:279) ---------------------------------------- rejected at a (http://js.arcgis.com/3.17/init.js:108:174) at h (http://js.arcgis.com/3.17/init.js:107:438) at then.c.then (http://js.arcgis.com/3.17/init.js:110:152) at http://js.arcgis.com/3.17/init.js:131:128 at _setContent (http://js.arcgis.com/3.17/init.js:419:370) at _setContentAttr (http://js.arcgis.com/3.17/init.js:414:138) at set (http://js.arcgis.com/3.17/init.js:355:304) at displayPopupContent (http://servername:3344/webappbuilder/apps/3/widgets/PopupPanel/Widget.js?wab_dv=2.1:293:31) at .<anonymous> (http://servername:3344/webappbuilder/apps/3/widgets/PopupPanel/Widget.js?wab_dv=2.1:177:16) at .<anonymous> (http://js.arcgis.com/3.17/init.js:63:209) ---------------------------------------- Error at then.c.then (http://js.arcgis.com/3.17/init.js:110:97) at http://js.arcgis.com/3.17/init.js:131:128 at _setContent (http://js.arcgis.com/3.17/init.js:419:370) at _setContentAttr (http://js.arcgis.com/3.17/init.js:414:138) at set (http://js.arcgis.com/3.17/init.js:355:304) at displayPopupContent (http://servername:3344/webappbuilder/apps/3/widgets/PopupPanel/Widget.js?wab_dv=2.1:293:31) at .<anonymous> (http://servername:3344/webappbuilder/apps/3/widgets/PopupPanel/Widget.js?wab_dv=2.1:177:16) at .<anonymous> (http://js.arcgis.com/3.17/init.js:63:209) at .<anonymous> (http://js.arcgis.com/3.17/init.js:643:121) at c [as onSetFeatures] (http://js.arcgis.com/3.17/init.js:119:79)"m @ init.js:113(anonymous function) @ init.js:114filter @ init.js:71h @ init.js:114 init.js:113 TypeError: Cannot read property 'relationships' of undefined(…) "TypeError: Cannot read property 'relationships' of undefined at _queryRelatedLayer (http://js.arcgis.com/3.17/init.js:2065:199) at _queryRelatedLayers (http://js.arcgis.com/3.17/init.js:2064:447) at _getRelatedRecords (http://js.arcgis.com/3.17/init.js:2061:378) at getComponents (http://js.arcgis.com/3.17/init.js:2045:367) at startup (http://js.arcgis.com/3.17/init.js:2069:73) at http://js.arcgis.com/3.17/init.js:412:229 at Object.forEach (http://js.arcgis.com/3.17/init.js:70:383) at _startChildren (http://js.arcgis.com/3.17/init.js:412:132) at http://js.arcgis.com/3.17/init.js:419:460 at h (http://js.arcgis.com/3.17/init.js:107:279) ---------------------------------------- rejected at a (http://js.arcgis.com/3.17/init.js:108:174) at h (http://js.arcgis.com/3.17/init.js:107:438) at then.c.then (http://js.arcgis.com/3.17/init.js:110:152) at http://js.arcgis.com/3.17/init.js:131:128 at _setContent (http://js.arcgis.com/3.17/init.js:419:370) at _setContentAttr (http://js.arcgis.com/3.17/init.js:414:138) at set (http://js.arcgis.com/3.17/init.js:355:304) at displayPopupContent (http://servername:3344/webappbuilder/apps/3/widgets/PopupPanel/Widget.js?wab_dv=2.1:293:31) at .<anonymous> (http://servername:3344/webappbuilder/apps/3/widgets/PopupPanel/Widget.js?wab_dv=2.1:149:16) at .<anonymous> (http://js.arcgis.com/3.17/init.js:63:209) ---------------------------------------- Error at then.c.then (http://js.arcgis.com/3.17/init.js:110:97) at http://js.arcgis.com/3.17/init.js:131:128 at _setContent (http://js.arcgis.com/3.17/init.js:419:370) at _setContentAttr (http://js.arcgis.com/3.17/init.js:414:138) at set (http://js.arcgis.com/3.17/init.js:355:304) at displayPopupContent (http://servername:3344/webappbuilder/apps/3/widgets/PopupPanel/Widget.js?wab_dv=2.1:293:31) at .<anonymous> (http://servername:3344/webappbuilder/apps/3/widgets/PopupPanel/Widget.js?wab_dv=2.1:149:16) at .<anonymous> (http://js.arcgis.com/3.17/init.js:63:209) at .<anonymous> (http://js.arcgis.com/3.17/init.js:643:121) at c [as onSelectionChange] (http://js.arcgis.com/3.17/init.js:119:79)"m @ init.js:113(anonymous function) @ init.js:114filter @ init.js:71h @ init.js:114 init.js:113 TypeError: Cannot read property 'relationships' of undefined(…) "TypeError: Cannot read property 'relationships' of undefined at _queryRelatedLayer (http://js.arcgis.com/3.17/init.js:2065:199) at _queryRelatedLayers (http://js.arcgis.com/3.17/init.js:2064:447) at _getRelatedRecords (http://js.arcgis.com/3.17/init.js:2061:378) at getComponents (http://js.arcgis.com/3.17/init.js:2045:367) at startup (http://js.arcgis.com/3.17/init.js:2069:73) at http://js.arcgis.com/3.17/init.js:412:229 at Object.forEach (http://js.arcgis.com/3.17/init.js:70:383) at _startChildren (http://js.arcgis.com/3.17/init.js:412:132) at http://js.arcgis.com/3.17/init.js:419:460 at h (http://js.arcgis.com/3.17/init.js:107:279) ---------------------------------------- rejected at a (http://js.arcgis.com/3.17/init.js:108:174) at h (http://js.arcgis.com/3.17/init.js:107:438) at then.c.then (http://js.arcgis.com/3.17/init.js:110:152) at http://js.arcgis.com/3.17/init.js:131:128 at _setContent (http://js.arcgis.com/3.17/init.js:419:370) at _setContentAttr (http://js.arcgis.com/3.17/init.js:414:138) at set (http://js.arcgis.com/3.17/init.js:355:304) at displayPopupContent (http://servername:3344/webappbuilder/apps/3/widgets/PopupPanel/Widget.js?wab_dv=2.1:293:31) at .<anonymous> (http://servername:3344/webappbuilder/apps/3/widgets/PopupPanel/Widget.js?wab_dv=2.1:149:16) at .<anonymous> (http://js.arcgis.com/3.17/init.js:63:209) ---------------------------------------- Error at then.c.then (http://js.arcgis.com/3.17/init.js:110:97) at http://js.arcgis.com/3.17/init.js:131:128 at _setContent (http://js.arcgis.com/3.17/init.js:419:370) at _setContentAttr (http://js.arcgis.com/3.17/init.js:414:138) at set (http://js.arcgis.com/3.17/init.js:355:304) at displayPopupContent (http://servername:3344/webappbuilder/apps/3/widgets/PopupPanel/Widget.js?wab_dv=2.1:293:31) at .<anonymous> (http://servername:3344/webappbuilder/apps/3/widgets/PopupPanel/Widget.js?wab_dv=2.1:149:16) at .<anonymous> (http://js.arcgis.com/3.17/init.js:63:209) at .<anonymous> (http://js.arcgis.com/3.17/init.js:643:121) at c [as onSelectionChange] (http://js.arcgis.com/3.17/init.js:119:79)"m @ init.js:113(anonymous function) @ init.js:114filter @ init.js:71h @ init.js:114 init.js:113 TypeError: Cannot read property 'NLS_prevMedia' of null(…) "TypeError: Cannot read property 'NLS_prevMedia' of null at _handleComponentsSuccess (http://js.arcgis.com/3.17/init.js:2077:356) at http://js.arcgis.com/3.17/init.js:63:209 at h (http://js.arcgis.com/3.17/init.js:107:279) at k (http://js.arcgis.com/3.17/init.js:107:205) at g.resolve (http://js.arcgis.com/3.17/init.js:109:280) at .<anonymous> (http://js.arcgis.com/3.17/init.js:2045:450) at http://js.arcgis.com/3.17/init.js:63:209 at h (http://js.arcgis.com/3.17/init.js:107:279) at k (http://js.arcgis.com/3.17/init.js:107:205) at g.resolve (http://js.arcgis.com/3.17/init.js:109:280) ---------------------------------------- rejected at a (http://js.arcgis.com/3.17/init.js:108:174) at h (http://js.arcgis.com/3.17/init.js:107:438) at k (http://js.arcgis.com/3.17/init.js:107:205) at g.resolve (http://js.arcgis.com/3.17/init.js:109:280) at .<anonymous> (http://js.arcgis.com/3.17/init.js:2045:450) at http://js.arcgis.com/3.17/init.js:63:209 at h (http://js.arcgis.com/3.17/init.js:107:279) at k (http://js.arcgis.com/3.17/init.js:107:205) at g.resolve (http://js.arcgis.com/3.17/init.js:109:280) at .<anonymous> (http://js.arcgis.com/3.17/init.js:2062:243) ---------------------------------------- Error at then.c.then (http://js.arcgis.com/3.17/init.js:110:97) at startup (http://js.arcgis.com/3.17/init.js:2069:101) at http://js.arcgis.com/3.17/init.js:412:229 at Object.forEach (http://js.arcgis.com/3.17/init.js:70:383) at _startChildren (http://js.arcgis.com/3.17/init.js:412:132) at http://js.arcgis.com/3.17/init.js:419:460 at h (http://js.arcgis.com/3.17/init.js:107:279) at then.c.then (http://js.arcgis.com/3.17/init.js:110:152) at http://js.arcgis.com/3.17/init.js:131:128 at _setContent (http://js.arcgis.com/3.17/init.js:419:370)"m @ init.js:113(anonymous function) @ init.js:114filter @ init.js:71h @ init.js:114
... View more
08-29-2016
04:37 PM
|
0
|
0
|
17773
|
|
DOC
|
I'm using the Popup Panel widget (version 2.1.1) in Web AppBuilder 2.1 with the Jewelry Box theme and adding the widget to the left side pane. In the web map, I've added a layer from the web that has parcels (among other things). The parcels layer also has four relationships published with the map service. In Web AppBuilder, when I click the first parcel, the popup panel widget is always empty but every parcel I click on after that shows the attributes correctly. Any ideas why the first click is always a dud?
... View more
08-26-2016
03:39 PM
|
0
|
0
|
17773
|
|
POST
|
I agree that I wasn't too keen on having to "consume the iterable" and reset it. I had tried the .next() approach and got the StopIteration error but wasn't quite sure how to handle it; thank you Bruce Harold for mentioning that. That last option with row = None is clever and seems to solve both problems; thanks for sharing.
... View more
08-26-2016
03:11 PM
|
0
|
0
|
622
|
|
POST
|
I know I'm playing necromancer and raising this discussion from the dead but I was looking for an answer to this question and found my own solution that I thought I would post. Maybe someone else has come up with something better by now. Thanks to Joshua Bixby for his blog post on cursors, here's what I came up with: with arcpy.da.SearchCursor(in_table, "*") as s_cursor:
if sum(1 for row in s_cursor): ## Counts items in cursor, returns 0 if empty
s_cursor.reset() ## Return cursor back to the first row after counting
for row in s_cursor:
# Process rows
print(row)
else:
print("Cursor is empty!") The check for rows will iterate through the cursor leaving nothing for the .next() item so you have to .reset() the cursor to start from the beginning again. In my case, I couldn't just count the rows with GetCount_management() in the original feature class because I was using a where clause in the search cursor.
... View more
08-25-2016
11:39 AM
|
0
|
6
|
3976
|
|
POST
|
The Buffer geoprocessing tool is available in arcpy so you shouldn't need to make your own toolbox and import it. Could you clarify what exact circumstance you want to run this buffer? Is it when a new feature class is registered as versioned? Is it just when new data is added to an existing feature class? Is it on a schedule?
... View more
08-15-2016
11:28 AM
|
1
|
4
|
1743
|
|
POST
|
I don't have any experience coding native mobile apps. There is a GeoNet community space for native app developers with subspaces for each mobile operating system (iOS, Android, etc).
... View more
08-08-2016
10:28 AM
|
0
|
0
|
1699
|
|
POST
|
Have you looked through the examples in the documentation? Updating and fixing data sources with arcpy.mapping—Help | ArcGIS for Desktop You could also consider findAndReplaceWorkspacePath(). In your code, what is wrkspcInfra and newStation? Also, there is a syntax highlighting feature for posting code blocks.
... View more
07-19-2016
10:15 AM
|
1
|
1
|
1444
|
|
POST
|
I noticed Michael Miller posted about Attribute Assistant in Utilities and Communications so I'll tag here to spread the tentacles.
... View more
07-14-2016
04:59 PM
|
0
|
10
|
3496
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 4 weeks ago | |
| 1 | 10-23-2025 03:53 PM | |
| 1 | 04-28-2026 07:25 AM | |
| 1 | 03-19-2026 08:59 AM | |
| 1 | 02-12-2026 01:37 PM |