Code to run a table mass action from a button?

Sweet, that’s actually easier to do than trying to figure out what the user had selected. The design is something like this:

  1. On your Model, add a UI only checkbox (I'll just refer to this as UI_Check)
  2. On your Model, add an action When row in model is updated. For the updated field select UI_Check. 
  3. In that model action, add the Data Source action.
  4. On your Button, add an action that Updates a field on a row. Select your Model and the field UICheck, and have it update all rows in the model.
That should do the job, however it'll only work once since the second try it'll be trying to check a box that's already checked. So on your button you will probably need to add a Branch so that it checks UI_Check if its unchecked, and unchecks it if it is already checked.