ArcGIS Pro 3.2.1 (ArcMap doesn't seem to behave this way)
"When applying a selection or filter, a selection of zero records can result. For example, selecting a value that is not present in the attribute field results in a selection of zero records. A geoprocessing tool that uses the layer as input will use no records from the input. This case is typically accompanied by a warning indicating that the input or output is empty."
While the GP tool does indicate it, I wonder if there are other use cases where we would have no way of knowing that a selection was applied, such as Python scripting.
Edit: To be clear, "0 of 4 selected" in the attribute table, and "0" at the bottom right corner of the map tab don't necessarily tell us that a selection of zero records has been applied. "0 of 4 selected" and "0" could be true if there isn't a selection applied, which is an entirely different scenario.
And I hinted at this earlier, but I'l clarify: The Clear buttons in the attribute table and in the bottom-right corner of the map tab are greyed out, which would suggest that a selection is not applied. But that's not the case, a selection has been applied. The fact that those Clear buttons are greyed out is inconsistent with the Clear buttons in the ribbon and in the Contents Pane —> Selection tab. The latter buttons are not greyed out, which paints a confusing picture for the user.
Related: Attributes Pane — Update common field in multiple FCs using single action
@Bud On the contents pane click the Selection toggle to see the count on each layer.
Also, the Table and Map views will give a count.
For clarity, are you thinking a contextual ribbon tab called Selection?
Thanks for pointing out the Selection tab in the Contents Pane.
I don't know exactly what the ideal solution would be in terms of clearly indicating that there is a "Selection of zero records" in the map.
Related: Esri Case #03514864 Selection of zero records: Clear selection button in Attribute Table is unavailable
I see two issues here, personally:
Issue 1 - Inconsistent behavior between the various buttons
I just checked, and Bud's right, and this is something I've never noticed.
Steps:
Confirmation (with NULL selection active):
Essentially, items 1-3 indicate that I have NO selection active. Items 4 & 5 indicate that there IS a selection active, but it's EMPTY/NULL.
Which brings me to:
Issue 2 - There is a distinction between a NULL selection and NO selection.
This behavior is so confusing that I honestly wonder if this is intentional or if it's (at least partly) a bug.
For clarity, I also had a definition query active when I was pulling those screenshots, but I just confirmed that the behavior is identical with that definition query turned off.
Regarding @MErikReedAugusta‘s point #3:
As mentioned in Esri Case #03514864; ArcGIS Pro 3.2.1; Mobile Geodatabase:
Video:
It would also be good if the attribute table made it crystal clear if a selection is applied. For example, at the bottom where it says “0 of 3 selected”, change that text to “0 of 3 selected (selection applied)”. Or something better.
BUG-000164132: The 'Clear' button under the Contents pane selection tab is missing when selecting zero records in ArcGIS Pro
BUG-000164133: The clear button is grayed out when selecting zero records and ensure consistent behavior for the clear button in ArcGIS Pro
If you are considering adding a "contextual tab to the ribbon called Selection", then you could also consider including this functionality: Save a Selection Set.
Updates to BUG-000164132 - The Clear button under the Contents pane selection tab is missing when selecting zero records in ArcGIS Pro.
Status: Fixed
Version Fixed: 3.4
Additional Information: This issue is addressed in 3.4
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.