Summary
In ArcGIS Pro, file attachments are stored in a separate attachment table within the geodatabase. However, the number of attachments added to the feature cannot be viewed directly in the attribute table. This article describes the workflow to display the number of attachments in the attribute table using an Arcade expression, as demonstrated in the image below.
Procedure
- Open the project in ArcGIS Pro.
- Add a new field to the attribute table of the feature layer.
- Open the attribute table of the feature layer.
- In the attribute table, click Add Field .
- In the Fields view, specify a name for the attachment field in the Field Name column.
- Double-click the Alias column and specify an alias for the field.
- Double-click the Data Type column and select Double from the drop-down menu.
- On the Fields tab, in the Changes group, click Save.
- Calculate the new field to determine the number of attachments added to the feature.
- Open the attribute table, right-click the new field, and click Calculate Field.
- In the Calculate Field dialog box, for Expression Type, select Arcade from the drop-down list.
- Copy the following expression paste it into theĀ Expression box.
Count(Attachments($feature))
- Click the Verify button to validate the expression.
- Click OK.
Note:
Enable MapTips to display the number of attachments when the pointer is placed on a feature, if necessary.