Hi All,
Is it possible to filter the Details widget of the dashboard such that it only shows records that have a photo attachment? It only seems to allow filtering by the other value fields. Let me know, thanks.
Regards,
Stephen Karanja
Solved! Go to Solution.
Hi Stephen,
Sure for hosted feature layers you can calculate the photo field in AGOL or Portal by clicking on the field 'Calculate' and typing in the statement in the first screenshot. Alternatively in ArcGIS Pro you can calculate the Photo field by right-clicking on the field 'Calculate Field' (2nd screenshot).
In addition here is an Esri ArcGIS Blog on attachments including the Count statement
Thanks,
Kathy
Hi @StephenKaranja ,
I'm not sure on directly filtering attachments, but I have added an additional field to the hosted AGOL feature layers called 'Photos', basically a photo count of attachments and then populated this field by using arcade expression Count(Attachments($feature))
This way I can filter out features that don't have any photos by Photo > 0.
Hopefully this info is useful.
Thanks,
Kathy
Thanks a lot @kmsmikrud for your response. It should work well for me. I've created the new field. Where do you type in the Arcade expression? Let me know, thanks.
Regards,
Stephen
Hi Stephen,
Sure for hosted feature layers you can calculate the photo field in AGOL or Portal by clicking on the field 'Calculate' and typing in the statement in the first screenshot. Alternatively in ArcGIS Pro you can calculate the Photo field by right-clicking on the field 'Calculate Field' (2nd screenshot).
In addition here is an Esri ArcGIS Blog on attachments including the Count statement
Thanks,
Kathy
Is there a way to do this without creating a new field? I just need a list (in a dashboard for example) of all features that have more than 1 attachment. Not getting the Count(Attachments($feature)) function to work in Arcade in Dashboards ... any ideas?
Same question. Ability to show Details only when there's attachments but without creating a new field. Here is why:
I wish List could just show attachments (images). Without creating a new field. (sometimes a schema change is not simple for various reasons, but that is nice workaround above for when/where possible; but I would prefer to just have image attachments work in List like they do for the Details widget)
Dashboards has a lot of potential but is kind of clunky presently, in terms of Actions and triggers., attachments, and such.