Problem
When considering Mass Actions on a table, there is currently no way to track/identify which items a user has selected.
Practical Example
A table consists of records in 4 statuses - New, Queued, In Progress & Done. A record's status can change from New --> Queued --> In Progress --> Done. A record will never go from In Progress --> Queued, or New --> Done. For this example, consider that a user can update fields on a New record, but can not update a record once the record has entered any other status. Now, consider that a user selects 4 items and performs a mass update - There is currently no way to confirm that the 4 items selected are all of the same Status.
Expectation/Ask/Idea
I am currently wanting to only show certain Mass Actions if and only if ALL of the selected items are of status X. If all items are status "New", then show Mass Action "Edit Record". If there is at least one item that is selected that is not "New", I don't want to show that Mass Action. I would expect (or love to see) options within the Enable/Render Logic that is the equivalent of "If [FieldName] on all records in context is equal to/is in/contains/etc... [Value]", or "If [FieldName] all selected records is equal to/is in/contains/etc... [Value]".
Current Workaround
Create a UI Only field on a Model
Create a custom JS CheckSelectedStatuses. This performs an immediate, one-time evaluation of the selected rows in the table and updates the appropriate Boolean field in the UI-only model.
Create a custom JS WatchSelectedStatuses. This establishes an event listener that monitors the table for selection changes. Whenever a user selects or deselects a row, it reevaluates the selection and updates the Boolean field.
Run the WatchSelectedStatuses snippet on page render