Skip to content

Batch action with all resources #4067

@SebastianVomMeer

Description

@SebastianVomMeer

Having a batch action with a form and a paginated index, I wonder if it's possible to trigger the batch action for all resources. I thought about the following approaches:

"Select all" checkbox

The select all checkbox only selects the current page in paginated indexes. I cannot remove pagination in my case.

Collection action besides batch action

I could use a collection action that does the same as the batch action. However, it seems like collection actions do not support batch action forms, do they? At least I couldn't find it in the docs.

Trigger batch action with custom action_item

A link to the batch action with keyword 'all' instead of the ID list would work, too. However, batch action URL generation seems to be complicated so I don't really know if that is possible and how it can be done.

Does somebody know which approach is the way to go?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions