Select to view content in your preferred language

Attachment Viewer showing attachments for features not on map

3062
14
12-05-2022 08:40 AM
Labels (1)
PaulCone2
Frequent Contributor

We have a map with one layer with the filter "CreationDate in the last week".  I created a web app using the Attachment Viewer and it's showing attachments for features not on the map.  I need the Attachment Viewer to show only attachments that make it through the filter.  How to do?  In the attached screenshot notice how there is only one point drawn yet Locations are 1/35.

0 Kudos
14 Replies
PaulCone2
Frequent Contributor

In the second image above the pop-up is on the main feature -- not related. 

You are still a member of the group the feature layer, web map and instant app (Attachment Viewer) are in so you should be able to access directly.

0 Kudos
SarahMcDonald_Esri
Esri Contributor

Hi Paul, 

Thanks, I had a chance to look at it more. I think I see what is going on. Since the table stores the attachments, the pop-up information that is displaying in the app is using the attributes from that feature. You want the pop-up information from the related feature that does not have an attachment. 

2022-12-29_11-07-59.png

I would recommend using arcade to bring in the attribute information from the related feature onto the pop-up for the attachment in the table. 

Here are a few resources that can help you do that:

https://learn.arcgis.com/en/projects/access-attributes-from-another-layer-with-arcade/

https://community.esri.com/t5/arcgis-online-blog/show-related-data-or-tables-in-pop-ups-with-arcade/...

Thanks!

Sarah

0 Kudos
PaulCone2
Frequent Contributor

Hi again Sarah,

I finally made it back to this.  I went through the materials above and am now editing the Arcade, but I'm still not sure how to get Attachment Viewer to point back to the main record and not the Related feature.ArcadeForLandslide.PNG

There are only two features in the current filter yet the Attachment Viewer is showing four attachments.  It should show two features.

0 Kudos
PaulCone2
Frequent Contributor

Hi Sarah,

Thank you for helping me resolve my original issue with filtering on the Attachment Viewer.  Do you have any thoughts on my additional question about showing detail for the feature and not the attachment?  How can I show a map pop-up in Attachment Viewer?

Paul

0 Kudos
PaulCone2
Frequent Contributor

Hello again @SarahMcDonald_Esri -- any update on this?

0 Kudos