POST
|
Try changing the field alias in the supporting webmap. That change should be reflected when you re-load the application.
... View more
01-12-2021
08:57 AM
|
2
|
0
|
1139
|
IDEA
|
Please return the id property for users of a given group in a portal. If fetching the users for a given group, the current response is: {
"username": "username1",
"fullName": "First1 Last1",
"memberType": "member",
"thumbnail": null,
"joined": 1460497506000
} Adding the user id value would provide for more effective relationships between user and group objects when using the REST or Python APIs. User—ArcGIS REST API | ArcGIS for Developers {
"username": "<username>",
"id": "<user id>",
"fullName": "<first name> <last name>",
"availableCredits": <available credits>,
"assignedCredits": <allocated credits>,
"firstName": "<first name>",
"lastName": "<last name>",
} Edited to add additional syntax and revised property name from userId to id
... View more
08-31-2020
09:13 AM
|
3
|
0
|
914
|
POST
|
Thank you RJ for your thorough answer and help on this issue.
... View more
03-26-2020
10:48 AM
|
0
|
0
|
1708
|
IDEA
|
For those enterprises which continue to use standalone ArcGIS Server site instances, it would be useful to enable the publishing of VectorTiles as a service capability.
... View more
03-02-2020
12:55 PM
|
11
|
0
|
584
|
POST
|
I'm having difficulty using the Multicardinal Field Splitter Processor to write to REST a 1:M XML structure. My service handles a file inbound transport whose structure is shown in the pseudo XML below. <Incident>
<Other>
<Incident_Number></Incident_Number>
</Other>
<Units>
<Unit>
<Unit_Id>Value 1</Unit_Id>
<Notified_Dttm></Notified_Dttm>
<Enroute_Dttm></Enroute_Dttm>
<Cancelled></Cancelled>
<Cancelled_Dttm/>
<Arrival_Dttm></Arrival_Dttm>
<Patient_Arrival_Dttm/>
<Enroute_Destination_Dttm/>
<Arrive_Destination_Dttm/>
<Cleared_Dttm/>
<Transfer_Of_Care_Dttm/>
<In_Service_Dttm/>
<Home_Dttm/>
<Hours></Hours>
<Mileage></Mileage>
<Lights_Sirens_To_Scene/>
<Unit_Role/>
<Notes/>
</Unit>
<Unit>
<Unit_Id>Value 2</Unit_Id>
<Notified_Dttm></Notified_Dttm>
<Enroute_Dttm></Enroute_Dttm>
<Cancelled></Cancelled>
<Cancelled_Dttm/>
<Arrival_Dttm></Arrival_Dttm>
<Patient_Arrival_Dttm/>
<Enroute_Destination_Dttm/>
<Arrive_Destination_Dttm/>
<Cleared_Dttm/>
<Transfer_Of_Care_Dttm/>
<In_Service_Dttm/>
<Home_Dttm/>
<Hours></Hours>
<Mileage></Mileage>
<Lights_Sirens_To_Scene/>
<Unit_Role/>
<Notes/>
</Unit>
<Unit>
<Unit_Id>Value 3</Unit_Id>
<Notified_Dttm></Notified_Dttm>
<Enroute_Dttm></Enroute_Dttm>
<Cancelled></Cancelled>
<Cancelled_Dttm/>
<Arrival_Dttm></Arrival_Dttm>
<Patient_Arrival_Dttm/>
<Enroute_Destination_Dttm/>
<Arrive_Destination_Dttm/>
<Cleared_Dttm/>
<Transfer_Of_Care_Dttm/>
<In_Service_Dttm/>
<Home_Dttm/>
<Hours></Hours>
<Mileage></Mileage>
<Lights_Sirens_To_Scene/>
<Unit_Role/>
<Notes/>
</Unit>
</Units>
</Incident> Here's the simple service I'm going for (below). When the XML is processed by the input, I'd like for 1 process to map its geometry and incident_number fields to a simple flattened table in a RDBMS. I'd like the multicardinal field splitter to parse out the 1:M records to a flat table in the same RDBMS that's linked via a relationship class. I need to preserve the incident_number element from the <Other> grouping to make the 1:M relationship with the geometry table work. With the latest release of this processor, only the first childIndex value is returned. I've seen this behavior in both the Feature Service Output shown above as well as with a simple File JSON output on the same server. What am I missing in how to address this (admittedly simple) workflow? Lastly here's the definition that GeoEvent creates upon ingesting the XML. Could the issue be due to Unit being seen as a Group as well, event after the Multicardinal Splitter drops Units? RJ Sunderman I'm wondering if anything stands out about how I'm approaching this.
... View more
02-14-2020
01:52 PM
|
0
|
3
|
1929
|
POST
|
This may be a reductive response but who should do the work? Should your ArcGIS Server site instance handle repeated requests for images via the /MapServer endpoint? Or would you like for the geometry to be drawn client side and the user's browser/application to be responsible for handling the processing/rendering of the data?
... View more
09-12-2019
10:43 AM
|
0
|
1
|
3108
|
POST
|
Thomas Colson Here you go: from arcgis.gis import GIS
import csv
import getpass
portal = input('Enter the URL of the portal instance')
username = input('Enter the username')
password = getpass.getpass()
gis = GIS(portal, username, password)
#leave the type param blank to return all types
itemsList = gis.content.search('', '', max_items = 100)
#list of fields to populate our header in the CSV
fields = ['Title', 'Type', 'Size', 'Owner', 'Description', 'Tags', 'Snippet', 'Categories', 'Access', 'URL', 'Shared With']
def itemRetrieval(arr, csvPath):
try:
with open(csvPath, 'w', encoding='utf-8', newline = '') as outfile:
csvfile = csv.writer(outfile)
csvfile.writerow(arr)
for item in itemsList:
print(item)
row = [item.title, item.type, item.size, item.owner, item.description, item.tags, item.snippet, item.categories, item.access, item.url, item.shared_with]
csvfile.writerow(row)
except Exception as error:
print('The following error occurred: ', error)
itemRetrieval(fields, input('Paste Path and Name of Output File : '))
... View more
08-28-2019
06:11 PM
|
1
|
0
|
1025
|
POST
|
Harald Øystein Lund Please see the answer provided in this thread: https://community.esri.com/thread/238285-enterprise-login-with-web-appbuilder-developer Adding a registered appId with the proper URI redirects should provide you with an OAuth2 Modal for Enterprise Logins.
... View more
08-15-2019
10:49 AM
|
2
|
0
|
1469
|
POST
|
Jessie, In your registered app in Portal/AGOL, under settings have you set redirect URIs to the location of your locally deployed app?
... View more
08-15-2019
07:59 AM
|
2
|
2
|
6148
|
POST
|
Hi Jessie, Have you tried the following? 1) Add a web application item in your Portal/AGOL with the URL of your locally deployed app. This item will function as a placeholder for your locally deployed app. 2) Go into the just registered app's settings and click Register at the bottom to generate an AppId. 3) Set the redirect URI(s) to your app. 4) Copy the appId into your locally deployed app's config.json in the appId property. (see below) 5) Attempt to load the app in your browser. Do you receive an OAuth2 Modal with an Enterprise Login option rather than the ArcGIS Datastore Named User login? "portalUrl": "https://portal url",
"appId": "insert appid from registered app in portal", Permissions to the app using ADFS would then be scoped as to how the registered app is shared across your organization.
... View more
08-13-2019
05:28 PM
|
2
|
9
|
6148
|
POST
|
Conceivably you could write a script using the Python API that would let you delete a user based on a time difference. You'd have to query for the user & return the User object, get its create date timestamp, then compare that timestamp against the given day's timestamp to see if it meets your 30 day criteria before deleting the user. This assumes that the user doesn't own content.
... View more
02-25-2019
09:30 AM
|
2
|
1
|
420
|
POST
|
As of this morning I've noticed that secured services whose credentials are embedded are not loading in ArcGIS Online (see previous thread re: this issue and a resolve utility proxy from November 2018) I've confirmed with other users outside of our organization that they're experiencing the same 502 Bad Gateway console errors/headers. Tagging Kelly Gerrow in case ESRI staff is not yet aware of this issue.
... View more
02-25-2019
08:18 AM
|
0
|
2
|
917
|
POST
|
We're experiencing this issue with GIS-tier token security as well beginning today. I'm seeing console errors all over the place with editable feature services wherein we have credentials stored in the item. Look forward to a resolution. e.g. console.log No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://tempegov.maps.arcgis.com' is therefore not allowed access. The response had HTTP status code 502.
... View more
11-09-2018
03:52 PM
|
0
|
0
|
2536
|
POST
|
Using the Smart Editor widget I'm attempting to edit the primary key of a related table (the relationship class used to publish is not attributed.) I have a point feature (cabinet) with a 1:M relationship. The related table represents widgets which exist inside a given cabinet. For example, a cabinet with Intersection Number 289 has 5 records each of which inherit the Intersection Number 289 of the respective cabinet. Widgets may be moved from cabinet to cabinet over time and thus to maintain referential integrity, in addition to concerns about interactivity and QueryTasks, I'd like to empower the user to update the related foreign key themselves. See below: the related intersection number FK is disabled. Using a Desktop client or the OOTB Edit Widget the foreign key of the related table is enabled for the user to alter but is disabled in the Smart Editor widget. I've taken a look at the widget's code in Developer Edition 2.8 and nothing jumped out at me re: exposing this.
... View more
07-18-2018
12:05 PM
|
0
|
0
|
457
|
POST
|
It might be possible using the Python API to look at a given Story Map's webmap for the operational layers array and the description string that's contained as a part of each record. You'd need to find a way to parse out the URL values contained within the description text, possibly through a regular expression and then check the HTTP response codes of each URL. I don't have a workflow for this but for more general maintenance purposes the following script lets you check the HTTP status of RESTful services in a given webmap. #import modules
from arcgis.gis import *
from IPython.display import display
#declare a connection to ArcGIS Online with credentials
gis = GIS("portal", "user", "pass")
print("Successfully logged in as: " + gis.properties.user.username)
import urllib
itemIdInput = input('Paste the webmap id')
#search for a specific web map
webmaps = gis.content.search(itemIdInput, 'Web Map')
#return the RESTful endpoints in the searched for webmap along with the HTTP response codes
for webmap in webmaps:
webmapJSON = webmap.get_data(try_json=True)
for layer in webmapJSON['operationalLayers']:
if 'url' in layer:
url = layer['url']
try:
response_code = urllib.request.urlopen(url).getcode()
except IOError:
response_code = 404
success = (response_code == 200)
print(layer['url'] + ' (' + str(success) + ')')
... View more
04-25-2018
05:19 PM
|
0
|
1
|
1565
|
Title | Kudos | Posted |
---|---|---|
1 | 08-23-2017 03:25 PM | |
1 | 03-21-2018 09:13 AM | |
1 | 06-14-2017 11:30 AM | |
2 | 01-12-2021 08:57 AM | |
1 | 05-18-2016 01:02 PM |
Online Status |
Offline
|
Date Last Visited |
06-11-2024
05:24 PM
|