BLOG
|
Thank you so much for this resource! It's a huge help. Though I'm currently dealing with an error when attempting the "Example 2 - Transfer of Multiple Field Values between Feature Classes where there is a 1:1 Match between Field Sets" code while using python 3.6 as my interpreter. On the code line below I get the following error: # Use list comprehension to build a dictionary from a da SearchCursor
valueDict = {r[0]:(r[1:]) for r in arcpy.da.SearchCursor(sourceFC, sourceFieldsList)} TypeError: 'Row' object is not subscriptable After some research, I've come to the belief that indexing is not supported with the SearchCursor tool when using python 3.6 or ArcGIS Pro. Is this true?? Are all my hopes and dreams crushed? Edit: I found out the issue. I was using arcpy.SearchCursor instead of arcpy.da.SearchCursor...It seems to be working well now.
... View more
04-05-2022
07:52 AM
|
0
|
0
|
538
|
IDEA
|
Thanks for the information @Razi_Mosadeghi. I've been attempting to do exactly as you stated with the <video> tag, except with a link to a youtube video. But, I run into a security issue when using Chrome, called "Cross-Origin Read Blocking" (CORB). So, the video is blocked from playing in the pop-up. Have you run into this issue before? Any suggestions? Below is some more information on the security feature run by Chrome: https://chromestatus.com/feature/5629709824032768 Thanks, Josh
... View more
01-05-2022
03:14 PM
|
0
|
0
|
724
|
IDEA
|
My Enterprise Portal is configured in a way that it would be very beneficial to have a, "A user requests to join any group" trigger event in webhooks. The Portal is set up in a way that my team and I created a default Administrator account that owns the large majority of groups and items on the Portal. While we still have our own accounts set up via integrated windows authentication (IWA). The problem is that no one logs into this default admin account too often and it is becoming increasingly harder to track user group requests. We set up a webhook workflow thinking that this would be our solution to not getting direct notifications for user group requests, but unfortunately, there isn't a webhook available for our needs (yet). The "All trigger events for all groups" trigger doesn't work either when a user requests to join a group. So, I've come here asking for the addition of a webhook trigger that goes off when a user has requested to join a group or all groups. Thanks.
... View more
08-30-2021
01:27 PM
|
2
|
0
|
371
|
POST
|
Tom, Here is an example for you: Choices tab: list_name name label maintenanceCategory Routine Routine maintenanceCategory Restoration Restoration maintenanceCategory Rehabilitation Rehabilitation Survey tab: type name label relevant select_one maintenanceCategory maintenance_category Maintenance Category select_multiple routineWork routine_work Routine Work selected(${maintenance_category}, 'Routine') select_multiple restorationWork restoration_work Restoration Work selected(${maintenance_category}, 'Restoration') select_multiple rehabilitationWork rehabilitation_work Rehabilitation Work selected(${maintenance_category}, 'Rehabilitation') Instead of calling out a column to filter the choices following a parent selection, as you would with a 'choice_filter', you have to call out the parent selection by value.
... View more
08-08-2019
11:51 AM
|
1
|
0
|
5229
|
POST
|
I'm trying to login to Portal using the ArcGIS API for Python, but under a different user than my windows authentication user (python with OAuth 2.0 or the original Admin user). Unfortunately every time I attempt to log in as a different user, the Portal recognizes my windows authentication username and password and logs me in under that user instead. Has anyone else ran into this issue and found a solution? Below is an example of my code and the responses: print("\n\nIntegrated Windows Authentication using NTLM or Kerberos")
gis = GIS("https://my.portal.org/portal")
print("Logged in as: " + gis.properties.user.username)
# Integrated Windows Authentication using NTLM or Kerberos
# Logged in as: me@activedirectory
print("\n\nPortal-tier Authentication with LDAP - enterprise user")
gisldap = GIS("https://my.portal.org/portal", "activedirectory\\originalAdmin", "password")
print("Logged in as: " + gisldap.properties.user.username)
# Portal-tier Authentication with LDAP - enterprise user
# Logged in as: me@activedirectory
pythongis = GIS("https://my.portal.org/portal", client_id='pythonappid')
print("Successfully logged in as: " + pythongis.properties.user.username)
# Successfully logged in as: me@activedirectory Thanks, Josh
... View more
05-16-2019
09:59 AM
|
2
|
0
|
296
|
Title | Kudos | Posted |
---|---|---|
2 | 08-30-2021 01:27 PM | |
1 | 08-08-2019 11:51 AM | |
2 | 05-16-2019 09:59 AM |
Online Status |
Offline
|
Date Last Visited |
02-13-2024
02:27 PM
|