After selecting records manually or by location it would be great to click on a button which automatically populates these records to the definition query to either hide or show them. Often this is a tedious process.
@chris_fox-esristaff the first part of the idea is display only the selected records, but the second part is the ability to later inspect that selection and possibly alter it, as well save and share it. Copying the selection into a definition query would allow that, while creating a layer from selection does not.
Also in my experience the redraw performance of def-query layers is markedly faster than selection-set layers, especially for image services.
A further limitation of Selections that Def Queries don't have is that many operations ignore the features/rows in "Selection from layer xxxxx" and read straight from the source table anyway.
Jakub Sisak I can't get to the tool you linked to. It's blocked by a login prompt that doesn't like my credentials.
I also added an idea for ArcGIS Pro for this capability. It has been reviewed but still not implemented. Jakub Sisak are you looking to perhaps come up with a Pro Addin too?
My idea is here: ArcGIS Pro Defintion Query By Selection
IMO Esri should offer to buy Jakub's tool and make it part of official toolkit.
Retrieving data ...