POST
|
Thank you, this fixed the issue! Thanks for catching the problem and for the solution!
... View more
2 weeks ago
|
0
|
0
|
90
|
POST
|
I am using an Arcade expression with HTML to format a feature layer pop-up in a web map. The format looks great, but for several features, the pop-up is just blank - without even the heading attributes that are populated for all features. In some cases, the features do not have related records and/or images - I thought I accounted for that with if statements. I think this issue seems to be occurring when there are no related site account records. Can anyone see anything wrong with the code that would be making this occur? // first get heading with attributes from selected feature
var output = "<p line-height: 1.6;><span style='font-size:2em;'><strong>"+$feature.site_name+" NHA</strong></span><br>"
output += "<span style='font-size:1.5em;'>A site of "+$feature.sig_rank+" significance.</span></p>"
// this is pulling in the attachment and displaying
var attach = Attachments($feature)
if(Count(attach) != 0) {
var Part1 = "https://services2.arcgis.com/REST SERVICE URL"
var ObjectID = $feature.OBJECTID
var Part2 = "/attachments/"
var AttachID = First(attach).ID
var img_path = Part1 + ObjectID + Part2 + AttachID
var img_caption = $feature.photo_caption
output += "<p><img src="+img_path+"><br>"+img_caption+"</p>"
}
// get site description and tr summary
var related_site = FeatureSetByRelationshipName($feature, "Site_Accounts", ["site_desc","tr_summary"]);
if (!IsEmpty(related_site)) {
var firstRel = First(related_site);
var desc = firstRel["site_desc"];
output += "<p><span style='font-size:1em;'>"+desc+"</span></p>"
var tr_summ = firstRel["tr_summary"]
if(!IsEmpty(tr_summ)) {
output += "<p><span style='font-size:1.2em;'><strong>Threats and Recommendations</strong></span><br>"
output += "<span style='font-size:1em;'>"+tr_summ+"</span></p>"
}
}
// Get the related features
var relatedRecords = FeatureSetByRelationshipName($feature, "Threats_and_Recommendation_Bullets", ["threat_text"]);
// Check if any related records exist
if (Count(relatedRecords) > 0) {
// Start an HTML unordered list
output += "<span style='font-size:1.0em;'>Specific threats and stresses to the elements present at this site, as well as conservation actions, include:</span><br><ul>";
// Loop through each related record
for (var record in relatedRecords) {
// Add a list item with the attributes you want to display
output += "<li>" + record.threat_text + "</li>";
}
output+= "</ul>"
}
return {
type : 'text',
text : output //this property supports html tags
};
... View more
3 weeks ago
|
0
|
2
|
165
|
POST
|
I am building an ExB app that allows users to browse a map, click site features, and return site descriptions and data about the site. I've tried a lot of different options for formatting the site descriptions which I'd like to include the site name, attachment photo, and text, but nothing has gotten me quite what I want. Option 1. I tried setting everything up in a column widget because I like that you can auto stretch text for larger blocks. I like what this looks like format-wise, BUT when there is not a selected feature, I don't want the user to see the back end blank place-holders. Here are the two side-by-side with selection and without selection: I tried putting the column in a section and changing views when a selection occurred which worked great, but then I couldn't figure out how to change back to the blank view when a selection was cleared. Option 2. I tried setting everything up and formatting in the popup in AGOL Web Maps and then I could just insert the Feature Info widget. I liked that I could format everything with HTML here, BUT, I was unable to figure out how to embed the image in the HTML and putting the photo in as an attachment element in the pop-up left large vertical spaces between the photo and text elements. Does anyone have any advice or ideas about how best to format info like this in ExB?
... View more
a month ago
|
0
|
1
|
298
|
POST
|
One of our users has downloaded an offline area in Field Maps for a map that our organization uses frequently for field collection. When he is choosing the area to download, he can see all the features, but after downloading, only some of the features show up in the offline map (it seems like newer features that were added earlier this spring are the ones excluded). I cannot replicate on my devices - I have tried with 3 different devices and with 3 different accounts with permissions set the same as his - all have downloaded successfully for me. I had him try a different device and the features still did not show up in the offline version. I had him try reinstalling the app in case there was a caching issue, but he had the same result. I tried deleting and recreating his Portal account and we are still running into the same issue. Does anyone else have any other ideas of what we could try next? Or has anyone run into this? The map is hosted on our Portal, we are running Enterprise v11.1.
... View more
06-18-2025
12:06 PM
|
0
|
2
|
268
|
POST
|
I have an Experience Builder application where the user can make a selection from a list and that will zoom in to the feature on the map and populate some other panels with information and allow the user to make edits in the Edit widget. There are a few different layers in the map that enable a user to view info in the pop-up just for additional context, but are unrelated to the layer that populates the info and edit widgets. When a user clicks on a feature from a different layer on the map, it clears the selection in the list and the info in various widgets clears until the user clicks on the list item again. Is there a way to disable this feature and allow the user to maintain the selection in the list AND view a pop-up from feature in a different layer? I couldn't figure anything out or find anything online about this.
... View more
04-24-2025
09:23 AM
|
0
|
1
|
350
|
IDEA
|
Just a +1 for this idea! This is really important for our experiences - has anyone found any workarounds for displaying related data with an auto-height for each record?
... View more
03-28-2025
03:25 PM
|
0
|
0
|
834
|
POST
|
I have not found anything to get me started with this and I'm wondering if anyone has any advice or resources about how to access feature layer attachments through the R-ArcGIS Bridge or some other way in R.
... View more
03-06-2025
12:09 PM
|
1
|
1
|
277
|
IDEA
|
This feature would be really nice for our organization as well. We have had to rebuild several Dashboards after needing to duplicate maps or create Dashboards/web maps with slightly different purposes/for different target audiences.
... View more
02-10-2025
09:53 AM
|
0
|
0
|
1574
|
IDEA
|
This would be incredibly useful for our organization as well for all the reasons already listed here. We work with vendors who still need Pro projects delivered in v2.9. We also have run into the Enterprise/Pro versioning issues.
... View more
02-05-2025
07:09 AM
|
0
|
0
|
642
|
POST
|
I am upgrading a script that heavily relied on the arcpy.mapping package to work with ArcGIS Pro. I have gotten everything working okay EXCEPT for updating the visible fields in the map layers. I have tried a bunch of different suggestions, but none that have worked. The simplest approach seems to be using Python cim access: https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/python-cim-access.htm My code runs okay, but when I open my .aprx, none of the fields have been hidden that are supposed to be hidden. Anyone have suggestions? visible_fields = ['list', 'of', 'fields']
aprx = arcpy.mp.ArcGISProject(aprx_path)
map_doc = aprx.listMaps(map_frame_name)[0]
for lyr in map_doc.listLayers():
if arcpy.Describe(lyr).dataType == "FeatureLayer":
print(lyr.name)
# Get the layer's CIM definition - using Pro 2.9
cim_lyr = lyr.getDefinition('V2')
# Make changes to field properties
for fd in cim_lyr.featureTable.fieldDescriptions:
if fd.fieldName not in visible_fields:
fd.visible = False # Do not display this field
# Push the changes back to the layer object
lyr.setDefinition(cim_lyr)
aprx.save()
... View more
01-16-2025
10:10 AM
|
1
|
2
|
655
|
IDEA
|
This would be really helpful for our organization as well!
... View more
01-09-2025
07:55 AM
|
0
|
0
|
417
|
POST
|
For testing, I used a layer that I knew the input coordinate system and added the transformation. I also tried setting the code outside of a context manager. Curiously, the output coordinate system seems to behave as expected if I set the Dissolve Option to "NONE" (Non-Overlapping (rings)), but does not honor the output coordinate system/transformation if the Dissolve Option is set to "ALL" (Overlapping (disks)). This seems buggy to me, but is there any potential explanation for why it would behave this way?
... View more
12-11-2024
08:03 AM
|
0
|
1
|
759
|
POST
|
I have a custom Python Toolbox script. As a part of the Python toolbox, I apply a multi ring buffer and would like the output to be in consistent coordinate system (which happens to be a custom coordinate system) regardless of the input. I am setting the coordinate system with environment manager, but the output is NOT honoring the environment settings and is in the same projection as the input dataset. Here is the code snippet from the larger script: with arcpy.EnvManager(outputCoordinateSystem='PROJCS["alber",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers"],PARAMETER["false_easting",0.0],PARAMETER["false_northing",0.0],PARAMETER["central_meridian",-78.0],PARAMETER["standard_parallel_1",40.0],PARAMETER["standard_parallel_2",42.0],PARAMETER["latitude_of_origin",39.0],UNIT["Meter",1.0]]'):
multi_buff = arcpy.MultipleRingBuffer_analysis(input_lyr, os.path.join(scratch_gdb, "multi_buff"), [100, 500], "Meters", "distance", "ALL", "OUTSIDE_ONLY", "GEODESIC") Curiously, I also just tested the Multiple Ring Buffer tool in ArcGIS Pro as well. I set the output coordinate system in the environment settings. The output was not consistently projected into the output coordinate system. Sometimes it would be and sometimes it wouldn't be. Does anyone have any insight on this? Thank you!
... View more
12-10-2024
02:18 PM
|
0
|
3
|
819
|
POST
|
I have a select_one question type that pulls in attributes from a feature service. It appeared to be working just fine, but I noticed today, that the search() is not pulling in newly created features. I tried restarting Survey123 and eventually the computer to see if it was just a cache thing, but no luck - many of the newer features are not being pulled into the select_one drop down. Has anyone else dealt with this or have any recommendations?
... View more
10-08-2024
02:23 PM
|
0
|
0
|
461
|
IDEA
|
Stacked repeats would be incredibly useful for our applications! Right now, toggling through repeat entries is incredibly cumbersome. We use a preview table written with HTML as a workaround, but this is a bit clunky and it would be great for users to be able to view and interact with their repeats without having to toggle through them individually.
... View more
10-04-2024
09:05 AM
|
0
|
0
|
818
|
Title | Kudos | Posted |
---|---|---|
1 | 03-06-2025 12:09 PM | |
1 | 01-16-2025 10:10 AM | |
12 | 06-12-2024 08:50 AM | |
2 | 06-13-2024 01:02 PM | |
3 | 07-17-2024 12:24 PM |
Online Status |
Offline
|
Date Last Visited |
Monday
|