POST
|
Hi RhettZufelt, The Status field is type "Short" and has a domain assigned with 3 options (Issues Found, No Issues, and Re-inspect). The value of this field is updated with an Attribute Rule in the inspection table, when the field worker performs an inspection (in Field Maps) there is follow-up question that is used to by the Attribute Rule to update the Status field in the parent feature. The symbology of the parent feature is based on this custom arcade expression: var f_status = $feature.status
When(f_status == Null, 'Never Inspected', f_status == 1, 'Issues Found', f_status == 2,'Re-inspect', f_status == 3, 'No Issue', 'Others') I can include logic in this custom symbology to check for the difference between the last inspection and the next inspection dates and use it to return a value of "Re-inspect". The only question that I have is: what is the trigger for the evaluation of this custom symbology expression? Is it constantly being evaluated? Regards.
... View more
02-21-2025
09:54 AM
|
0
|
1
|
705
|
POST
|
Hi Jeffrey, Thanks for the quick reply. Could you elaborate on how to use ModelBuilder to trigger the attribute rule? Also, I think that the scheduling in Pro uses the Window Scheduler, how this workflow would work if I wanted that the scheduler triggering the Model or Python script were in a server machine, instead of my desktop.
... View more
02-20-2025
11:36 AM
|
0
|
1
|
779
|
POST
|
Hi, I’m working with the following tools: ArcGIS Enterprise 11.3 ArcGIS Pro 3.4.2 Experience Builder in ArcGIS Enterprise Field Maps This is part of an inspection workflow involving two feature classes (poles and handholes) with a relationship class to a single inspection table. Workflow Overview: Field Workers (Field Maps): Conduct inspections and add records to the inspection table. Supervisors (Experience Builder): Monitor progress and make updates. The symbology of poles and handholes is based on a "Status" field. I need an attribute rule that automatically updates "Status" to "Re-inspect" when the difference between "Next Inspection Date" and the current date is less than 30 days. Ideal Solution: A scheduled process that periodically triggers the attribute rule across both feature classes. Alternatively, a manual option in Experience Builder that allows supervisors to select multiple features on a map and trigger the rule in bulk using out-of-the-box widgets. Technical Details: The data is stored in an SQL Enterprise Geodatabase. The feature layer is published as a referenced layer to ArcGIS Enterprise (to support attribute rules). What is the best approach to achieve this? Would an ArcGIS Python script scheduled in Windows Task Scheduler be a good option? Are there any Experience Builder methods (without custom widgets) that can help with manual triggering? Any suggestions are appreciated! Thanks.
... View more
02-20-2025
10:59 AM
|
0
|
7
|
796
|
POST
|
Hi, I’m working with the following tools: ArcGIS Enterprise 11.3 ArcGIS Pro 3.4.2 Experience Builder in ArcGIS Enterprise Field Maps This is part of an inspection workflow involving two feature classes (poles and handholes) with a relationship class to a single inspection table. Workflow Overview: Field Workers (Field Maps): Conduct inspections and add records to the inspection table. Supervisors (Experience Builder): Monitor progress and make updates. The symbology of poles and handholes is based on a "Status" field. I need an attribute rule that automatically updates "Status" to "Re-inspect" when the difference between "Next Inspection Date" and the current date is less than 30 days. Ideal Solution: A scheduled process that periodically triggers the attribute rule across both feature classes. Alternatively, a manual option in Experience Builder that allows supervisors to select multiple features on a map and trigger the rule in bulk using out-of-the-box widgets. Technical Details: The data is stored in an SQL Enterprise Geodatabase. The feature layer is published as a referenced layer to ArcGIS Enterprise (to support attribute rules). What is the best approach to achieve this? Would an ArcGIS Python script scheduled in Windows Task Scheduler be a good option? Are there any Experience Builder methods (without custom widgets) that can help with manual triggering? Any suggestions are appreciated! Thanks.
... View more
02-20-2025
10:58 AM
|
0
|
0
|
262
|
POST
|
Hi, I'm trying to use arcpy to modify the popup configuration for a map in ArcGIS Pro 3.4.2. The dataset is a Utility Network and the map is configured with subtype layers. My code runs without error, but the popup is not changed on the map, it continues to show all the fields instead of just the 4 fields that I want to show. This is the code that I'm using. I included 2 version of the "configure_popup_fields" function. Both functions return no error, but the popup is not updated. I am running the code using notebook inside the project. import arcpy
def configure_popup_fields(project_path, map_name, layer_name, desired_fields):
"""
Configure popup fields for a feature service layer using correct CIMPopup classes
Parameters:
project_path (str): Full path to the .aprx project file, or 'current' for current project
map_name (str): Name of the map
layer_name (str): Name of the layer
desired_fields (list): List of field names to show in popup
"""
try:
# Open the project
aprx = arcpy.mp.ArcGISProject(project_path)
# Get the map and layer
target_map = next((m for m in aprx.listMaps() if m.name == map_name), None)
target_layer = next((l for l in target_map.listLayers() if l.name == layer_name), None)
if not target_layer:
print("Layer not found")
return
# Get the CIM definition
layer_cim = target_layer.getDefinition('V2')
# Create the table media info and set the fields
media = arcpy.cim.CIMPopup.CIMTableMediaInfo()
media.fields = desired_fields
# Create popup info and set the media info
popup = arcpy.cim.CIMPopup.CIMPopupInfo()
popup.mediaInfos = [media]
# Set the popup info on the layer
layer_cim.popupInfo = popup
# Apply the changes
target_layer.setDefinition(layer_cim)
print("Popup configuration updated successfully")
except Exception as e:
print(f"Error configuring popup: {str(e)}")
def configure_popup_fields(project_path, map_name, layer_name, desired_fields):
"""
Configure popup fields for a feature service layer using CIM specification
Parameters:
project_path (str): Full path to the .aprx project file, or 'current' for current project
map_name (str): Name of the map
layer_name (str): Name of the layer
desired_fields (list): List of field names to show in popup
"""
try:
# Open the project
aprx = arcpy.mp.ArcGISProject(project_path)
# Get the map and layer
target_map = next((m for m in aprx.listMaps() if m.name == map_name), None)
target_layer = next((l for l in target_map.listLayers() if l.name == layer_name), None)
if not target_layer:
print("Layer not found")
return
# Get the CIM definition
layer_cim = target_layer.getDefinition('V2')
# Create popup info if it doesn't exist
popup = arcpy.cim.CIMPopup.CIMPopupInfo()
# Create table media info with specified fields
table_media = arcpy.cim.CIMPopup.CIMTableMediaInfo()
table_media.fields = desired_fields
# Set up the popup configuration
popup.mediaInfos = [table_media]
popup.useQuotes = False
popup.separator = ", "
# Set the popup info on the layer
layer_cim.popupInfo = popup
# Apply the changes
target_layer.setDefinition(layer_cim)
print("Popup configuration updated successfully")
except Exception as e:
print(f"Error configuring popup: {str(e)}")
if __name__ == "__main__":
project_path = r"Path_to_Prject\Operation_Map.aprx"
map_name = "System Design Map _ Python"
layer_name = "Medium Voltage Fuse"
#Fields you might want to show in the popup
desired_fields = [
"assetid",
"model",
"manufacturer",
"installdate"
]
configure_popup_fields(project_path, map_name, layer_name, desired_fields)
... View more
02-07-2025
04:53 AM
|
0
|
1
|
595
|
POST
|
Hi, Yes, you are right. It also says that they used the developer version of ExB. Do you know if there is a way to create a full screen photo carousel triggered by a button with the ArcGIS Enterprise 11.3 version of ExB without custom widgets? Regards.
... View more
12-11-2024
04:57 AM
|
0
|
0
|
513
|
POST
|
Hi, I want to create the type of photo carousel functionality that I saw in this experience (Utah Rockhounder). The main page has section with what looks like a Card widget. When the user selects any feature on the map the Image widget inside the Card widget shows the photos associated with feature on the map. In my case, these images are in a related records table (this is an inspection app, and every asset inspection is a record in the table). I need to show the images for the most recent inspection. (See image below) Additionality, you can see that the Utah Rockhounder experience has a button at the bottom right corner of the Image widget that says, "Show all photos". Clicking the button opens a new window with bigger photos in a carousel that shows the number of pictures and selection buttons at the bottom. (See image below) Is this possible in Experience Builder on Enterprise 11.3 and how this could be created?
... View more
12-10-2024
01:06 PM
|
0
|
3
|
552
|
POST
|
Hi, I want to create the type of filtering functionality that I saw in this experience (Michigan Historical Markers). I have used the filter and query widget in ArcGIS Enterprise 11.3 but those widgets don't offer the configuration and functionality that I see in the filters of the link: Selection count Drop down with multiple selection options Auto application of the filter Show all and show selection button at the bottom of the dropdown A refresh filter button at the bottom right of the section Any ideas of how this was created?
... View more
12-10-2024
12:52 PM
|
0
|
4
|
999
|
POST
|
Hi Jeffrey, The experience in the link (https://experience.arcgis.com/experience/0810844003f149faa1a3aeaa64d7d42e) of you answer has a filter section with a widget behavior that I don't how it was created. Do you have any info regarding how that filter functionality was created, type of widget and configuration? Regards.
... View more
12-10-2024
12:44 PM
|
0
|
1
|
1598
|
IDEA
|
The markup layer is a very convenient tool to draw ideas on maps and to keep track of data all in one place. When using one markup layer, there is no problems using the tool as it was designed. The problem comes when a user is switching between multiple markup layers. A user would want to use a different markup layer to keep track of different markups in the same location without them being connected. Once a user is done with one markup layer and wants to use a different markup layer, the map will zoom all the way out, and to get back to where the user was drawing, they would have to zoom back in. This circumstance occurs every time a user would switch between markup layers. It makes more sense to keep the screen where it is when switching between markup layers rather than zooming the screen out when switching between markup layers. I am not sure if this is a bug or is intended by Esri, but it would be a lot more convenient for the screen to stay where it is when switching between markup layers. This happens on the IPad mobile application.
... View more
04-05-2024
07:08 AM
|
1
|
0
|
490
|
POST
|
Hi, I'm not sure if this is the right place to post this question but I'm using the action scripting feature inside the Utility Network Editor (UNE) from ESRI UK (Utility Network Editor - Take Your Utility Network Everywhere | Esri UK). The action scripting in UNE uses Arcade to trigger actions in the app. The syntax provided in the help documentation to "zoom to" a location is this: // Pan to a Location
return {
command: "zoomto",
geometry: Extent({
xmin: 1000,
ymin: 1000,
xmax: 1000,
ymax: 1000,
spatialReference: { wkid: 102100 }
})
}; We are trying to use the code below. This code is trigger after using the Find functionality of the app and selecting one item in the search results. When we validate the code we get this for line 4: Execution Error: Cannot read properties of null (reading 'spatialReference'). It looks like the Extent function is having a problem processing the geometry of the selected feature. When we comment-out line 4 and remove the "zoomto" command, the rest of the code works. The feature is selected, the map pans to the selected feature, the selected feature flashes; but no zoom to. var feature = $action.matchedFeature; // Get the selected feature
var featureGeometry = Geometry(feature); // Get the geometry of the selected feature
var extent = Extent(featureGeometry); // Calculate the extent of the selected feature's geometry
// If the feature geometry is null, return an empty extent
if (IsEmpty(featureGeometry)) {
extent = Extent({xmin: 0, ymin: 0, xmax: 0, ymax: 0, spatialReference: {wkid: 102100}});
}
// Select Features
return [
// Select the search feature
{
command: "select",
method: "new",
layers: [
{
layerid: $action.matchedlayerid,
graphics: [$action.matchedfeature]
}
]
},
// Pan to a Location
{
command: "panto",
geometry: featureGeometry,
flash: true
},
// Zoom to a Location
{
command: "zoomto",
geometry: extent
}
];
... View more
03-26-2024
08:07 AM
|
0
|
0
|
481
|
POST
|
Hi, I tried those but didn't work either. But search on the developer's documentation I found the syntax: Query (Feature Service)—ArcGIS REST APIs | ArcGIS Developers Thanks for your answers.
... View more
01-18-2024
06:13 AM
|
0
|
0
|
980
|
POST
|
Hi YukoYokozawa, Thanks for the reply. That works but what if I need something more specific like the example in the Survey123 documentation ( Prepare to edit existing survey data—ArcGIS Survey123 | Documentation) I tried this syntax and got the 400 error. The second image shows the properties of the dateTime field and the syntax that I used.
... View more
01-17-2024
08:39 AM
|
0
|
2
|
1023
|
POST
|
Hi, I'm using Survey123 Connect Version 3.19.104 and the survey is used in the mobile app only. I want to create an Inbox Query expression using a DateTime question. I tried different date-time formats in the SQL expression with no luck and I haven't found any documentation on how to this. I'm getting "Code 400 Cannot perform query. Invalid query parameters." What is the query syntax for this type of questions? Regards.
... View more
01-17-2024
07:39 AM
|
0
|
4
|
1071
|
Title | Kudos | Posted |
---|---|---|
1 | 04-05-2024 07:08 AM | |
1 | 09-03-2021 06:56 AM | |
1 | 10-16-2023 11:27 AM | |
1 | 10-16-2023 11:11 AM | |
1 | 10-06-2021 05:34 PM |
Online Status |
Offline
|
Date Last Visited |
02-21-2025
05:58 PM
|