|
POST
|
I am trying to update features in an AGOL feature layer in Python. I am looping through some Json returning routers and then want to update the feature that matches the router ID The example works below, but I can't figure out how to change router_feature = [f for f in router_features if f.attributes['id']==557159][0] to use a variable. In the same vein, I need to update the geometry and setting a point works, but again I need to put in the new location values from the Json for x,y pt = Point({"x" : -111.93345, "y" : 33.59674, "spatialReference" : {"wkid" : 4326}}) search_result = gis.content.search('title:my Routers') router_item = search_result[0] search_result[0] router_item = search_result[0] print (router_item) router_layers = router_item.layers router_layers router_fset = router_layers[0].query() router_features = router_fset.features router_flayer = router_layers[0] router_flayer.properties.capabilities router_feature = [f for f in router_features if f.attributes['id']==557159][0] router_feature.attributes route_edit = router_feature pt = Point({"x" : -111.93345, "y" : 33.59674, "spatialReference" : {"wkid" : 4326}}) router_feature.geometry = pt display(route_edit) update_result = router_flayer.edit_features(updates=[route_edit]) update_result Thanks for any help Mele
... View more
11-12-2021
03:33 PM
|
0
|
1
|
950
|
|
DOC
|
Thank you for posting this! I have been struggling to find a working solution for a while. This is perfect.
... View more
11-02-2021
02:53 PM
|
0
|
0
|
4069
|
|
POST
|
Phil, Thanks for the response. I am not sure on the iOS and iPad versions. I will get the info. We did not uninstall Survey 123. What is happening is that the previous O365 SSO user is cached and the next user is not able to enter their login information. Is there a way to clear the log in cache without an uninstall of Survey 123? Mele
... View more
05-28-2021
11:29 AM
|
0
|
2
|
1871
|
|
POST
|
I'd like to show the photos, if any by a listing in the popup. I have this so far, but can't get to the photo. Any suggestions on how to get the related photo as a listing in the popup? var relatedrecords = FeatureSetByRelationshipName($feature,"COREs_photos") var cnt = Count(relatedrecords); var result = "Related records: " + cnt; if (cnt>0) { for (var row in relatedrecords) { result += TextFormatting.NewLine + row.globalid; } } return result;
... View more
04-30-2021
04:07 PM
|
0
|
2
|
2038
|
|
POST
|
It looks like Workforce classic no longer works on the Android version 10. Is there a maximum Android version it will work on?
... View more
03-23-2021
03:44 PM
|
0
|
4
|
6148
|
|
POST
|
I have set up counters on our two non-federated ArcGIS Servers. Configured using this format https://mapsvr:6443/arcgis What is odd is that our cached base maps and cached aerials map services don't show in the reports for usage. Is there something to configured specifically for cached services?
... View more
01-21-2021
08:54 AM
|
0
|
0
|
983
|
|
POST
|
Justin! That's hilarious. When I saw this mention I was like, could it be? Anyways I don't know that I ever was able to find an answer to those messages I was seeing in the logs. One problem is that we have a number of applications that are hitting the map services and don't have direct input into the queries that are sent. There are definitely so not well formed queries so maybe that was it. Sorry I don't have any more info. Good to hear from you and that you are doing this level of work. Hope all is well out there.
... View more
09-14-2020
10:11 AM
|
0
|
0
|
3742
|
|
POST
|
It looks like with the Dart Theme and Plateau Theme, the focus is not taken away by the Info Summary widget like in other themes.
... View more
12-02-2019
03:27 PM
|
0
|
0
|
968
|
|
POST
|
I am experimenting with the Web AppBuilder Smart Editor Widget in ArcGIS Online. I have the search widget configured to use a Feature Layer for it's search layer. What I would like to do is to be able to use the selected search result as input when creating a feature with the Smart Editor Widget. I know I can click on the feature and use that as input for the Smart Widget or use the Geocoding service as input to the Smart Widget, but I would like to remove the chance that the user clicks in the 'wrong' spot. Any ideas on how to get this to work in the ArcGIS Online Web AppBuilder? Thanks, Mele
... View more
12-02-2019
03:25 PM
|
0
|
0
|
664
|
|
POST
|
I am trying to use the Info Summary Web App Builder Widget in AGOL. Whenever I have the list expanded, I cannot effectively use the search tool. The Info Summary takes the focus away when I start typing in to the search widget. I would like to be able to leave the info widget open and visible for the person performing edits, but that seems to be a problem with this issue. Is there any way to keep focus on the search widget and not switch to the Info Summary widget when I start typing? Thanks, Mele
... View more
11-27-2019
12:55 PM
|
0
|
1
|
1013
|
|
POST
|
Xander, Thanks for your reply I do have a field to validate whether a Case Info Sheet Info sheet. It is a simply an integer field. 0=no 1=yes. In arcade I have that working to show text for instructions to use the selection tool to launch the Case Info Sheet in the Embedded Content pane A button to select the point so the Case Info sheet would be shown in the embedded content would be nice. The "Move the tool" to the popup would not be needed if the above was possible One other item which I don't think is possible but would be nice is to send other items to the embedded content. We have another item that is conditional called Applicant's submittal and it would be nice to see it show up in the same embedded content window as the Case Info Sheet. I current have a hyperlink that displays if the Applicant's Submittal is available in a new tab. This is my Dashboard. Hope that helps. Operations Dashboard for ArcGIS Thanks, Mele
... View more
08-08-2019
04:27 PM
|
0
|
1
|
1518
|
|
POST
|
I have a popup where I am using Arcade to show the highlight text if a 'Case Info Sheet' exists. What I really like to do is to select from the popup via hyperlink or by moving the selection tool. Can this be done? Thanks, Mele
... View more
08-07-2019
09:01 AM
|
0
|
3
|
1593
|
|
POST
|
Tyler, Thanks for confirming this. I was not able to find any examples, so I see why. I did use a similar approach as you suggested. I created a .NET program which validates a URL in our Enterprise Geodatabase Feature Class and updates a field if the URL is valid. I am then using that field in Arcade. Thanks Mele
... View more
08-07-2019
08:53 AM
|
0
|
0
|
2390
|
|
POST
|
We have a planning cases Operations Dashboard. On the ArcGIS Online Popup there is a link to the Applicant's Submittal. Most of the planning cases have an associated PDF, but not all. I would like to validate that a URL has content and does not give a 404 error. Can this be done in an ArcGIS Online popup with Arcade and/or another method? Thanks, Mele
... View more
08-02-2019
08:59 AM
|
0
|
2
|
2566
|
|
POST
|
Simon, You might start by taking a look at this to see if your data is supported. https://pro.arcgis.com/en/pro-app/tool-reference/data-management/enable-feature-binning.htm After struggling with this for quite a while, I contacted ESRI support and they provided this bit of useful information. "Running the Enable Feature Binning tool activates binning for the feature layer but does not redraw the layer with bins until it is removed then added back to the project." See 'Caution' note: 'Aggregate features into bins': https://pro.arcgis.com/en/pro-app/help/mapping/layer-properties/aggregate-features-into-bins.htm What I did was to run the 'Enable Feature Binning Tool' on the point Feature Class in the Catalog View rather than in the Contents pane. After binning was enabled, I dropped the Feature Class onto a map and the binning tab visible and was enabled. This also come from Support and might be of use. "To turn the display of bins on and off for a bin-enabled feature class, follow these steps: (1) Highlight a bin-enabled feature layer from the Contents pane. (2) Under Binning, on the Bin tab, in the Layer group, click the Binning button". See 'Turn bins on and off': 'Work with binned feature layers': https://pro.arcgis.com/en/pro-app/help/mapping/layer-properties/work-with-binned-feature-layers.htm One other caveat was that I needed to change my projection based on this "An equal area projection for your data is strongly recommended" Here are a few additional reference web-links:- - Introduction to Dynamic Feature Binning in ArcGIS Pro: https://www.esri.com/arcgis-blog/products/arcgis-pro/mapping/introduction-to-dynamic-feature-binning-in-arcgis-pro/ - An overview of the Feature Binning toolset: https://pro.arcgis.com/en/pro-app/tool-reference/data-management/an-overview-of-the-feature-binning-toolset.htm Mele
... View more
07-18-2019
09:24 AM
|
1
|
0
|
2079
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-27-2026 09:23 AM | |
| 1 | 02-26-2026 06:47 AM | |
| 3 | 10-20-2025 05:21 AM | |
| 1 | 03-13-2015 04:39 PM | |
| 1 | 09-18-2025 08:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
Monday
|