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