Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Bulk Operations don't work with DataTables as View display format.
When filtering (instant text search) or paginating the table you lose the previously selected items (the operation will act on the last selected item only).
I guess it's a javascript conflict but I'm not a developer :(
Comments
Comment #2
JacobCF CreditAttribution: JacobCF commentedI am facing the same issue on Drupal 8. I can select multiple items, but all the items have to be on the same page.
Comment #3
dqdVBO and DT have different approaches to show table items. I think it should not be used together. I am even not sure if this can be implemented without a huge amount of patches on both sides: VBO and DT itself (not the Drupal module, which only manages the implementation). This is not a bug, rather a feature request. And consider it as possible unfullfilled dream.
Comment #4
dqd... and, BTW it's a duplicate of #1477850: VBO and DataTables
Comment #5
smulvih2I just ran into this issue and was able to resolve by implementing a hidden checkbox to capture the selections from datatables.
Add hidden checkbox to VBO form using all values from $form['views_bulk_operations']:
Then in the form definition for a given operation I added the following to take the checkbox values and add to $form_state['selection'] so VBO has the values:
From here VBO does the rest. I implemented this for D7, but I assume a similar technique could be used for D8.
Comment #6
dqd@smulvih2 Thanks for your reports. But it is still a duplicate. Please report it in the first issue.