Hello.
The map in our Experience includes a layer with attachments enabled. When performing an 'Edit' widget query, the queryAttachments query string includes the argument 'keywords=photos'. Because none of our attachments have keywords, no attachments are returned. When doing an 'Info' widget query, 'keywords' is not included in the query string so the associated images/attachments are returned as expected.
Edit URL:
https://services2.arcgis.com/<foo>/arcgis/rest/services/<bar>/FeatureServer/0/queryAttachments?f=json&token=<token>&keywords=photos&objectIds=145934&returnMetadata=true
Info URL:
So a couple of questions:
Thank you.
Solved! Go to Solution.
this blog may help answer you questions:
https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/attach-more-value-to-your-fo...
If it doesn't please let us know.
this blog may help answer you questions:
https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/attach-more-value-to-your-fo...
If it doesn't please let us know.
@CraigGillgrass Thanks for the link. The blog post certainly provides some context for what has changed. I'm still unsure of why the keywords parameter gets added to the queryAttachments request, or how i can control or configure what values it includes. Is there a blog that explains that?
I'm probably missing a lot of important details and nuance, but it seems like i need to redo any maps used in ExBldr that includes layers with attachments (assuming we want to be able to edit the data) - is that correct?
The ArcGIS form spec now includes dedicated attachment questions, and those questions require the upgraded attachment table schema. It looks like most ESRI teams have gone ahead and assumed every attachment table uses this new format, which is causing all sorts of issues for Enterprise users with registered EGDB data. I'd advise getting your attachments upgraded ASAP, I doubt this assumption is getting rolled back going forward.
@DavidSolari for Enterprise feature services, yes, they will to be updated. We do have information on this in the Field Maps form documentation. We are looking at adding this to the Map Viewer form documentation.
@Trippetoe does the layer have a form authored for it? If so, have you made any edits to the form since the release?
@CraigGillgrass You're initial recommendation to read the blog did the trick for me. I admit i did have to read it a couple times to get the important piece about using the 'General' type of Attachment element. It seems that when using that element the 'keywords' parameter is not added to the query string. So all of our existing attachments are not filtered out.
Thank you for tip!
good news, glad that blog helped