POST
|
No worries Clive, Glad I could help out! Regards, Josh
... View more
12-18-2020
09:49 AM
|
0
|
0
|
65
|
POST
|
Hi Clive, I'll admit I'm a little confused about your code, as I don't see any reference to FeatureName[0] and your variable "groups" seems to be returning your feature layers? Also your output doesn't match what's in your "rowitem" at all? Regardless, to access that information you need to access the FeatureLayer object properties, which gives you access to the name and id as a dictionary. # this prints the dictionary with all of the extra info, flayer being a Feature Layer object
flayer.properties
# to print id and name respectively
flayer.properties["id"]
flayer.properties["name"] If your intention is to iterate over every feature layer and print out that information, I think the following code does it a bit more efficiently. serviceItems = gis.content.search("*", item_type="Feature*", max_items=1000)
for item in serviceItems:
layers = item.layers
for lyr in layers:
try:
print(item.id, item.url, lyr.properties["id"], lyr.properties["name"])
except Exception as e:
print(e)
... View more
12-18-2020
08:08 AM
|
2
|
2
|
70
|
POST
|
Ahh, I should have looked at the documentation again. Replace the & with a ? and you should be fine. "The Survey123 web app can accept parameters in the same format as the field app. The only difference is that you must use a question mark to separate the item ID of the survey from the first parameter, rather than an ampersand (ampersands are still used to separate parameters). The following example URL passes the surname and coordinate parameters to a survey in the Survey123 web app: https://survey123.arcgis.com/share/36ff9e8c13e042a58cfce4ad87f55d19?field:surname=Klauser¢er=37.8199,-122.4783"
... View more
12-18-2020
06:06 AM
|
0
|
2
|
107
|
POST
|
Hi, I notice when hovering over those urls that it's still directing to &field:Species with a capital, I'm not sure if that is what is happening in reality or just what you've typed to me but it's worth checking. It seems you may have updated the display text but not the underlying link url. Otherwise the formatting of the url looks fine to me, it seems like everything is working properly except for the matching of the fields, or else the survey wouldn't be opening or "Alder" wouldn't be getting populated. I don't think consuming the survey feature layer in the web map would be causing this behaviour. To avoid these potential issues you can try getting the field populating working outside of the web map, i.e. just clicking https://survey123.arcgis.com/share/8f45592bb9084c8592c90640f3a1c78c&field:species=Alder
... View more
12-18-2020
04:18 AM
|
0
|
1
|
120
|
POST
|
Hi, Have you checked the Survey123 form schema to confirm the name of the field? This is often different to the question title; it might be that the actual field name is "species", which would explain why it isn't populating.
... View more
12-18-2020
02:54 AM
|
0
|
7
|
125
|
POST
|
Hi Tanner, I wrote a script to do this last year: gis-administration/search_webmaps_for_services.py at master · joshsharpheward/gis-administration · GitHub which I designed to be run from ArcGIS Pro, you can download the gp toolbox in that repo to use it straight away! Otherwise if you want to run it from another environment you can copy the code from the script and just modify the 'gis = GIS("pro")' and ' services = arcpy . GetParameter ( 0 )' lines. Note my script also scans web applications in your portal/agol to see if the service is being used in any configured searches, but this can be stripped out easily.
... View more
10-08-2020
07:52 AM
|
2
|
2
|
239
|
POST
|
Hi, Sharing the dashboard doesn't update the sharing on the webmaps and web services within the dashboard, so I would check those items to make sure they have also been made accessible to everyone! This is a common issue when sharing a web application publicly, so could be what's going on here.
... View more
09-28-2020
07:08 AM
|
0
|
0
|
97
|
POST
|
From having a quick peek it looks like you can use &defaultObjectId=19 in the url to get it to start with that feature!
... View more
09-24-2020
07:16 AM
|
0
|
0
|
100
|
Online Status |
Offline
|
Date Last Visited |
12-20-2020
08:40 AM
|