IDEA
|
According to the 2024 roadmap, it looks to be coming in Q2 this year: https://community.esri.com/t5/arcgis-experience-builder-blog/arcgis-experience-builder-2024-roadmap/bc-p/1368781
... View more
02-13-2024
08:25 AM
|
0
|
0
|
703
|
POST
|
I have seen this issue before when people connect from a corporate networks. Can you try this at home (not on VPN), or from a public WiFI not on VPN to see if you are able to connect without the verify_cert = False?
... View more
11-20-2023
11:39 AM
|
0
|
0
|
299
|
BLOG
|
@LLyons I would start by taking a look at this link to the help documentation. You should be able to open this in ArcGIS Online and "Save As" a notebook in your ArcGIS Online org. You can then modify it to point to your layer. There are a hundreds of great samples and videos on youtube that show how to get started as well.
... View more
08-31-2023
11:42 AM
|
1
|
0
|
800
|
BLOG
|
@LLyons If you want to make the field editable in the UI, you would have to run the code above down through line 24. That turns off editor tracking and makes the edit tracking fields editable.
... View more
08-31-2023
10:04 AM
|
0
|
0
|
817
|
BLOG
|
Here is some updated code that works with tables: from arcgis.gis import GIS
import arcgis.features
import datetime as dt
fromUser = "scot5141@esri.com_government_admin"
toUser = "ScottMoorePNW"
editorField = "Editor"
editorDateField = "EditDate"
creatorField = "Creator"
creatorDateField = "CreationDate"
gis = GIS("home")
item = gis.content.get("4f286c8ed2a34c26b244e26c3a60b376")
f = arcgis.features.FeatureLayerCollection.fromitem(item)
f.manager.update_definition({"editorTrackingInfo" : {"enableEditorTracking" : False}})
#Let's make the editor tracking field editable
editFlag = True
fm = item.tables[0].manager
fm.update_definition({"fields":[{"name":editorField,"editable":editFlag},{"name":editorDateField,"editable":editFlag}, \
{"name":creatorField,"editable":editFlag},{"name":creatorDateField,"editable":editFlag}]})
#Now run a calculate field expression to set the Creator field from the fromUser to the toUser (ScottMooreRAD to ScottMoorePNW)
calcExpr = []
calcExpr.append({'field' : creatorField, 'value' : toUser})
#calcExpr.append({'field' : creatorDateField, 'value' : dt.datetime.now()})
#calcExpr.append({'field' : editorField, 'value' : toUser})
#calcExpr.append({'field' : editorDateField, 'value' : dt.datetime.now()})
lyr = item.tables[0]
results = lyr.calculate(where=creatorField + " = '" + fromUser + "'",calc_expression=calcExpr)
print(results)
editFlag = False
fm.update_definition({"fields":[{"name":editorField,"editable":editFlag},{"name":editorDateField,"editable":editFlag}, \
{"name":creatorField,"editable":editFlag},{"name":creatorDateField,"editable":editFlag}]})
f.manager.update_definition({"editorTrackingInfo" : {"enableEditorTracking" : True}})
... View more
08-31-2023
10:00 AM
|
1
|
0
|
820
|
POST
|
Ok, I wonder if it would work for you to go into the services directory for the hosted table and delete all of the records and then use the append through the item details page. Maybe try this and see if it works for you. The analytics team is looking at this so they may use this use case to improve the experience.
... View more
08-31-2020
11:46 AM
|
1
|
1
|
1967
|
POST
|
I only tested with a service definition file, not a file geodatabase. It does look like it should work from a file geodatabase based on the API ref: arcgis.gis module — arcgis 1.8.2 documentation From the error, it appears that the feature service has already been published from the file geodatabase. You could delete the feature service (keep the file geodatabase item) and try it (make sure you have backed up the feature service if there have been changes to it that you want to keep). The sd_itemid would point to an item of type "File Geodatabase" that hasn't yet had a feature service published from it.
... View more
08-28-2020
01:36 PM
|
0
|
0
|
2016
|
POST
|
Publish the CSV as a hosted table and then you can use the Join Features tool with the option to Create results as hosted feature layer view. Join Features—ArcGIS Online Help | Documentation Then, you can overwrite or "upsert" your table when you get new updates and the view is dynamic and will reflect the join. https://www.esri.com/arcgis-blog/products/arcgis-online/uncategorized/whats-new-with-hosted-feature-layers-getting-to-know-append-part-1-december-2017 This will keep the same hosted feature layer (boundaries) joined dynamically to the hosted table (from the CSV) and the only thing you are updating weekly is the data in the hosted table. No need to create new hosted feature layers week to week. I hope that helps!
... View more
08-24-2020
01:30 PM
|
0
|
5
|
1967
|
POST
|
Here is an example of using pulldata to validate a set of "codes" in a csv. It works in the webform as well.
... View more
08-24-2020
10:51 AM
|
2
|
1
|
627
|
POST
|
I would look at dateFieldsTimeReference for use with the publish_parameters option. It would look something like this in code: from arcgis.gis import GIS sd_itemid = "a71a0a30cd0e4cde9d196f99e935a919" gis = GIS("https://www.arcgis.com", "YourAGOLUserName") #Find SD file, then update or add, then publish sd_item = gis.content.get(sd_itemid) #Parameters for editor tracking pub_params = {"dateFieldsTimeReference" : {"timeZone":"Pacific Standard Time"}} sd_item.publish(publish_parameters=pub_params, overwrite=True) More of the doc can be found here: https://developers.arcgis.com/rest/users-groups-and-items/publish-item.htm
... View more
04-13-2020
02:17 PM
|
3
|
5
|
2016
|
POST
|
Hi Emma! Maybe look at this method (GeoSeriesAccessor.snap_to_line): arcgis.features module — arcgis 1.7.1 documentation You may need to iterate over your points, find the nearest line to each point, and then run the snap_to_line function against it. That is where I would start. There are probably other ways as well, but I would try this and see what kind of results you get. Scott
... View more
03-04-2020
01:59 PM
|
0
|
1
|
1534
|
POST
|
As of 3/19/19, we can now update the ownership information after a hosted feature service is published. I know this isn't the exact issue in this post, but it may be part of a solution for others. https://community.esri.com/people/smoore-esristaff/blog/2019/03/21/updating-editor-tracking-data-in-a-hosted-feature-service-online
... View more
03-21-2019
12:19 PM
|
2
|
0
|
1779
|
BLOG
|
With the 3/19/19 release of ArcGIS Online, some changes were made to the admin API for hosted feature services (ArcGIS Online only) that make it possible to update editor tracking data as an administrator in ArcGIS Online. Why would you need to do this? Well, the way editor tracking (also known as Keep track of who created and last updated features) works, is that when a new feature is created in a hosted feature service, 4 fields are automatically populated with data about who created and last edited a feature and when those operations happened. Those fields look like this: As you can see, I have 5 features that are "owned" by ScottMooreRAD meaning that the ArcGIS Online user ScottMooreRAD initially created the feature on 3/19/2019 at 10:57AM. Notice that the Editor and EditDate fields are also populated when the feature is first created. Now, what happens if ScottMooreRAD no longer works at my agency? We need to be able to reassign ownership of ScottMooreRAD's features, especially when we have OBAC (ownership based access control) enabled. NOTE: Feature Service owners (and certain others) can edit all features in the Map Viewer when they Add layer to new map with full editing control, but this does not affect the Creator attribute. If we have the feature service set to only allow editors to edit their own features, and the user that owns the feature no longer exists, then we would be stuck in terms of being able to edit those features. So, how can we update these system managed fields so we assign the features to a new user? Let's run a simple ArcGIS API for Python script! The first step is to connect to ArcGIS Online using the ArcGIS API for Python and get access to the feature service. You should connect as the owner of the feature service. Notice that we have also setup 2 variables for the current owner (fromUser) and the owner we would like to take over ownership of features (toUser). We also have 4 variables for the field names that are used for the editor tracking fields. In some cases, your field names may be different and this makes it easy for us to change. Now, the real work begins. We need to disable editor tracking: Next, we need to make the editor tracking fields editable. Now that they are editable, we can run a calculate expression to update the fromUser (ScottMooreRAD) to the toUser (ScottMoorePNW). Notice in the python code above that I have 3 commented out fields. If you would like to update the other editor tracking fields for some reason, you can also update the creation and last edit dates as well as the last editor. Simply uncomment those lines and put in your own logic. The final step we need to take is to make the editor tracking fields read-only (editable: False), and to turn editor tracking back on. Now, let's validate that the Creator is set to our new user. As we can see, the features that were owned by ScottMooreRAD are now owned by ScottMoorePNW. Attached, you will find a python notebook that you can start from. Let me know in the comments if you have any questions!
... View more
03-21-2019
09:38 AM
|
12
|
10
|
3621
|
Title | Kudos | Posted |
---|---|---|
1 | 08-31-2023 10:00 AM | |
1 | 08-31-2023 11:42 AM | |
1 | 08-17-2017 04:42 PM | |
1 | 01-10-2017 10:28 AM | |
1 | 12-13-2017 08:48 AM |
Online Status |
Offline
|
Date Last Visited |
Wednesday
|