Ability to calculate field on highlighted records only (yellow selection in attribute table) while retaining the original selection

2205
20
02-09-2023 06:50 AM
Status: Implemented
Labels (1)
CalebGarrett
Occasional Contributor

I would like the ability to calculate a field for highlighted records in the attribute table (those selected in yellow). I understand you can click the "Reselect" button on the attribute table toolbar to reselect the records and then calculate the field on those newly reselected records, but it would be nice to be able to retain my original selection and only calculate the highlighted records (yellow selection).

20 Comments
CalebGarrett

@KoryKramer Thank you for re-opening after further discussion. @Bud suggested I edit the post to use the word "highlighted" instead of "reselected" to clarify the idea. I agree that is a better word choice and have edited the post as suggested.

JonathanNeal
Status changed to: In Product Plan

FYI @KoryKramer and All this is implemented in 3.2.  Also, the message for selection is updated to say 'highlighted' records for more clarity on what we are processing in the GP tool.  Thanks again for the idea, keep them comming 🙂

AlfredBaldenweck

Hey @JonathanNeal , that is great news. Will there be an updated getSelectionSet() or something analogous?

JonathanNeal

@AlfredBaldenweck Thanks checking it out now:
The Doc is a little sparce for what the intent of the function is when it comes to Highlights:
https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/layer-class.htm#M1_GUID-AE1B6592-5077-4B14-AF...

JonathanNeal_0-1685993918177.png

 

JonathanNeal

@AlfredBaldenweck So, highlighted is not saved in the map, so the behavior would not work outside of the active map.  But, the arcpy.mp team my be interested in taking this idea further.

They wouldn't change the default behavior of .getSelectionSet(), but they may make some functionality for it.

MargaretCrawford
Status changed to: Implemented

This idea has been implemented in ArcGIS Pro 3.2.

You will see a message under parameter inputs with highlited records on geoprocessing tools (including calculate field) :

MargaretCrawford_0-1702917077888.png

MargaretCrawford

If you would like to learn more about the updated message, please check out this blog: https://www.esri.com/arcgis-blog/products/arcgis-pro/analytics/geoprocessing-uiux-enhancements-in-ar... 

Bud
by

@MargaretCrawford 

Does this mean that the way GP tools work has fundamentally changed? If there are highlighted rows, then only those rows will be processed, by default? Which is different from previous versions, where highlighting was ignored by geoprocessing tools.

I’m not suggesting there’s anything wrong with that. I just want to fully understand.

Bud
by

@CalebGarrett 

Side note: You mentioned the Reselect button. You might find this idea interesting: Attribute Table — Highlighted rows "Reselect" button wording

MargaretCrawford

Does this mean that the way GP tools work has fundamentally changed? If there are highlighted rows, then only those rows will be processed, by default? Which is different from previous versions, where highlighting was ignored by geoprocessing tools.

We added highlighted records as another option. 
As in previous releases, if a layer has a selection AND a filter, only the selection is described in the tip and used by the tool. And If you toggle the selection off, the tool will run using ALL the records in your dataset. We extended that logic to highlights. If you toggle off a highlight, the tool will run using ALL records. So, if you had a highlight, selection, and attribute-based filter on your data, only the highlight is described in the tip and used by the tool.