POST
|
Hi Michael, Retrieve the following sample to update language. from arcgis.gis import GIS
gis=GIS("https://arcgis.com", "login", "password")
users= gis.users.search(query='')
##For testing filter user by startswith
users=[user for user in users if user.username.startswith('user')]
##Read original 2 users profil:
for u in range(len(users)):
print('Original profil: lastName: {0}, units: {1}, culture: {2}, region: {3}'.format(users[u].lastName, users[u].units, users[u].culture, users[u].region))
#As result, we have:
#Original profil: lastName: demo2, units: metric, culture: en-US, region: EN
#Original profil: lastName: demo3, units: metric, culture: en-US, region: EN
##Write user profil:
for u in range(len(users)):
users[u].update(culture='fr-FR', region='FR')
##Read modified 2 users profil:
for u in range(len(users)):
print('Modified profil: lastName: {0}, units: {1}, culture: {2}, region: {3}'.format(users[u].lastName, users[u].units, users[u].culture, users[u].region))
#As result, we have:
#Modified profil: lastName: demo2, units: metric, culture: fr-FR, region: FR
#Modified profil: lastName: demo3, units: metric, culture: fr-FR, region: FR According the doc it seems you cannot update units from user profile. See link below https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#user Extract : update(access=None, preferred_view=None, description=None, tags=None, thumbnail=None, fullname=None, email=None, culture=None, region=None, first_name=None, last_name=None, security_question=None, security_answer=None) Hope this help you, Fred
... View more
03-19-2021
02:24 AM
|
0
|
0
|
2064
|
POST
|
Hi Anna, Another more elegant code is to check if the property typeKeywords of the item has the text 'hosted Service' include in his list. Retrieve code below: from arcgis.gis import GIS
gis = GIS("https://votreNomDomaine/portal", "login", "password")
items = gis.content.search('*',item_type="Feature Layer", max_items=25)
itemsHosted = [item.title for item in items if 'Hosted Service' in item.typeKeywords]
print(itemsHosted) Hope this help you, Best regards, Fred
... View more
03-12-2021
08:48 AM
|
1
|
0
|
3085
|
POST
|
Hi Anna, You can list all feature layers hosted using gis.admin module. See sample below: from arcgis.gis import GIS
gis = GIS("https://votreNomDomaine/portal", "login", "password")
server = gis.admin.servers.list()[0]
count=1
for service in server.services.list('Hosted'):
print('{} {}'.format(count, service))
count+=1 Hope this help you, Best regards, Fred
... View more
03-12-2021
12:18 AM
|
1
|
0
|
3105
|
POST
|
Hi, Watch this excellent video to use Esri API JS into Blazor. Cómo hacer un "plugin" Javascript en Blazor #Esri #Microsoft #Blazor #ArcGIS #JS #Javascript #Alpa - YouTube Have fun, Fred
... View more
08-25-2020
02:55 AM
|
1
|
0
|
2321
|
POST
|
Hi Mwalimu, Please check the following items about this file C:\Program Files\ArcGIS\Portal\framework\runtime\tomcat\conf\server.xml 1. if it's existing => if it's missing copy paste my template file version 10.7.1, 2. if the size of this file is correct (not 0 ko)=> if it's missing copy paste my template file version 10.7.1, 3. if the size is less than 17 ko, edit it and check at the end to see if there are lines missing such as closing tags. 4. after that restart Portal Windows service Hope this help, Fred
... View more
07-30-2019
12:17 AM
|
3
|
9
|
17113
|
POST
|
Hi Mark, Maybe from your Portal URL go to Organization > Utility Services > Refresh Print Template list and delete the template name you want to clear. Fred
... View more
02-18-2019
03:02 AM
|
0
|
1
|
700
|
POST
|
Hi Mark, Maybe 2 ways to solve this issue: 1. Used a New Incognito Window and go to your Web App print widget menu drop down in Portal, 2. Restart PrintingTools service from ArcGIS Server Manager, Hope his help you, Regards, Fred
... View more
02-15-2019
08:11 AM
|
0
|
3
|
700
|
POST
|
Hi, Your data cannot be the same depending you read them from ArcMap or directly the table in Toad if you have register as versioned your data. By the way, all updates are stored in the delta table (table A and D) and not in the business table. To visualize your entire data you must query the view with tableName_EWV instead of table. Using the view terminate with _EWV merge data stored under delta tables and business table. Hope this is your problem ! Regards, Fred
... View more
02-04-2019
06:21 AM
|
0
|
2
|
620
|
POST
|
Hi Charlie, Are you using a 32-bit environment about PyCharm? I'm not using PyCharm actually, I use PyScripter to debug ArcPy code. So I've installed a PyScripter 32-bit and nor 64-bits versions. A trick to identify your 32 or 64 bit environment is to jump on Python Console. You must have : Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] on win32. *** Regards, Fred
... View more
02-04-2019
05:43 AM
|
0
|
1
|
1013
|
POST
|
Hi, Try following code : import arcpy
import os
arcpy.env.workspace = "Database Connections\\Server Database sde.sde"
featureclasses = arcpy.ListFeatureClasses()
for fc in featureclasses:
arcpy.arcpy.CreateDatabaseView_management(
"Database Connections\\Server Database sde.sde", "v_" + str(fc.split('.')[2]), "select * from " + fc)
... View more
02-01-2019
05:29 AM
|
1
|
3
|
2185
|
POST
|
Hi Jamal, Use Internet Explorer to enable a new report stat for each services. More detail from this bug: BUG-000104435: In ArcGIS GIS Server, the New Report radio buttons a.. Hope this help you, Fred
... View more
12-31-2018
01:35 AM
|
2
|
1
|
1561
|
POST
|
Hi, Maybe use method describe in this old ArcObjects help resource: How to use environment settings Hope this help you, Fred
... View more
08-31-2018
02:44 AM
|
0
|
0
|
312
|
POST
|
Hi Shane, Maybe from VS project go to Add ArcGIS reference > Reference > Choose Engine (core) > you can find Esri .AcGIS.DsataManagementsTools. Hope this help you, Fred
... View more
09-28-2017
02:44 AM
|
1
|
1
|
659
|
POST
|
Hi, According to the documentation you cannot renamed a folder if it contains services. You can only renamed it from ArcCatalog if the folder is empty. Best regards, Fred
... View more
10-13-2016
04:54 AM
|
1
|
0
|
1769
|
POST
|
Hi Ernst, You could also use this tool GP Update Extent FClass. Hope this help you, Fred
... View more
01-14-2016
12:54 AM
|
0
|
0
|
1998
|
Title | Kudos | Posted |
---|---|---|
1 | 06-14-2023 01:00 AM | |
1 | 03-12-2021 08:48 AM | |
1 | 12-03-2021 07:23 AM | |
1 | 05-28-2021 12:04 AM | |
1 | 05-27-2021 12:47 AM |
Online Status |
Offline
|
Date Last Visited |
Thursday
|