|
POST
|
I have a table that i need to get sorted base on a field (the STREET field). I don't want to create a new table i would like to work with the existing table. I am able to get the counter field populated with numbers and they look right but i can't see to get the "COUNTER" field sorted. I don't get an error with the following but it's not sorting by the COUNTER field. import arcpy
#create order of 'Street'
lyr = 'C:\Temp\Default.gdb\CurrntRoadNamesTablePublic_1' # replace this with your layer name
fields = ['STREET', 'OID@']
# set up a dictionary and counter
dict = {}
counter = 0
# Use list comprehension to build a dictionary of Nummer/ObjectID tuple keys
dict = {(row[0:]):0 for row in arcpy.da.SearchCursor(lyr, fields)}
# Sort the dictionary keys and increase the counter values based on the key order
for value in sorted(dict.keys()):
counter += 1
dict[value] = counter
# Write back to the layer with an update cursor using the dictionary. Change 'COUNTER' to your counter field
fields = ['STREET', 'OID@', 'COUNTER']
with arcpy.da.UpdateCursor(lyr, fields) as cursor:
for row in cursor:
row[2] = dict[(row[0],row[1])]
cursor.updateRow(row)
with arcpy.da.UpdateCursor(lyr,"COUNTER",sql_clause=(None,"ORDER BY COUNTER")) as cursor:
for row in cursor:
cursor.updateRow(row)
print 'Done'
... View more
04-11-2018
08:11 AM
|
0
|
6
|
2096
|
|
POST
|
"Web server", so the Web AppBuilder for ArcGIS Developer Edition applications can be actually hosted on ArcGIS Server it self? If they can be where are application files hosted in iis?
... View more
04-05-2018
11:02 AM
|
0
|
1
|
1897
|
|
POST
|
VM - virtual machine? how are you hosting on the same VM as Portal, in iis?
... View more
04-05-2018
07:31 AM
|
0
|
0
|
1897
|
|
POST
|
Is it possible to host a custom a custom WAB app(built in WAB Developer) on Portal or does it have to hosted on ArcGIS server?
... View more
04-04-2018
02:31 PM
|
1
|
5
|
2492
|
|
POST
|
What error does the browser give in the developers console and/or network(response)? Is this a secure service? I've never been able to print maps with points at all. I get error {"error":{"code":400,"message":"Unable to complete operation.","details":["Error executing tool. Export Web Map Task : Layer \"Address_Points\": Failed to create layer from service at https://blahblah/Address_Points/FeatureServer/0.\nFailed to execute (Export Web Map).\nFailed to execute (Export Web Map Task)."]}}
... View more
03-07-2018
11:44 AM
|
0
|
1
|
1792
|
|
POST
|
I do see that the Enhanced Query widget is only able to query one layer at a time but in your demo web app in the "Select a map layer field to search:" you have about 30 layers to select from. I am currently only able to just have one. How do you add more layers to the Select a map layer field to search: drop down.
... View more
03-07-2018
08:01 AM
|
0
|
0
|
6741
|
|
POST
|
Robert i have some questions if you don't mind. What data are you retrieving from the CAMA system, what are you doing with it? How exactly are you doing it?
... View more
02-26-2018
09:54 AM
|
0
|
1
|
1313
|
|
POST
|
I see, I trying to look into accessing out CAMA system from a WAB application and i am not sure how to do i thought maybe you were trying to do that.
... View more
02-23-2018
01:32 PM
|
0
|
3
|
4604
|
|
DOC
|
After looking at the manifest.json i didn't replace it, It still said 2.6. Not sure what happen but i could have sworn i replaced. Anyways copy replaced the folder and it looks like the app is at 2.7 now. Thanks and sorry for the post.
... View more
02-23-2018
09:48 AM
|
1
|
0
|
10804
|
|
DOC
|
I was trying too upgrad the eSearch widget from 2.6 to 2.7 in a applicaiton that is built. I copied\replaced the new 2.7 eSearch widget folder to the \server\apps\12\widgets folder. I opened up the app 12 made some changes to the WAB configuration eSearch widget and saved but the eSearch widget is still showing to be 2.6 (ctrl+alt +click on the widget). what i am doing wrong?
... View more
02-23-2018
09:28 AM
|
0
|
0
|
10804
|
|
POST
|
I was able to get the widget to show up. I was able to change the layer in widgets\Ehanced Query\config.json to just one feature server. How do i add more layers to the "Select a map layer field to search". My may and layers are ArcGIS Online. Thanks.
... View more
02-15-2018
11:57 AM
|
0
|
2
|
6741
|
|
POST
|
sorry i mean with Enhanced Search widget, i wanted to make sure it wasn't just me. entirely Contained give weird results if you line work is not perfect, it almost seems as the best option would be "Have their centroid in the source layer feature."
... View more
02-14-2018
11:56 AM
|
0
|
2
|
1268
|
|
POST
|
I am trying to use the Esearch widget by spatial "within" but keep getting no results. Here are the steps i am taking. 1. Select impact area polygon with esearch "by shape". 2. click spatial tab, set search features of another polygon layer, there is feature within the impact area selected polygon 3. and Use one of these spatial relationships: "within" There is features of the search features layer that are with the select impact area polygon. Not sure what i am doing wrong?
... View more
02-14-2018
10:53 AM
|
0
|
4
|
1391
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-27-2022 11:37 AM | |
| 1 | 10-31-2023 10:16 AM | |
| 1 | 02-16-2023 01:50 PM | |
| 1 | 08-11-2021 11:13 AM | |
| 1 | 01-06-2021 10:45 AM |
| Online Status |
Offline
|
| Date Last Visited |
09-10-2024
10:42 AM
|