It would seem that all this might be for naught, as apparently, you can’t use javascript snippets for mass actions?
What I’m trying to do is select a group (from an aggregate query) of records to import.
I use select the ‘records’ and mass-actions to import those.
It needs to do a query for each row (since it’s an aggregate query) to get the individual records of the aggregate and update a field on those rows.
Easy-peasy with getSelectedItems.
- Loop thru the selected rows
- Update a model to query the aggregate (in this case it’s the Fund+StartDate+EndDate+Acknowledgement )
- Run the Query
- Loop thru each row in the query model updating the single field linking to the campaign.