⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Bulk operations



skyluke83

skyluke83
  • profile picture
  • Member

Posted 12 July 2017 - 21:57 PM

Hi Guys,

 

I'm new to the forum but I've been using Grocery CRUD since a few months. I have been figuring out almost everything, except this:

 

I have a contacts table, each contact can be assigned to a list. How can I bulk assign multiple contacts to a certain list? something like the attached image more or less..

 

Thanks!

Luca

 

 


skyluke83

skyluke83
  • profile picture
  • Member

Posted 12 July 2017 - 21:59 PM

Or in general.. I know I can use the add_action function to add an action for every row, but i would need something that applies to all the rows checked (I am using the bootstrap theme v3).

 

Thanks!

Luca


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 13 July 2017 - 04:47 AM

Hi there,

 

The following link may be abl to help you on the same.

/topic/421-multiple-delete-selection/

 

You may achieve your desired functionality by tweaking the shared piece of code.

 

Happy GCing :)


skyluke83

skyluke83
  • profile picture
  • Member

Posted 13 July 2017 - 11:43 AM

Thank you very much! That definitively helps me in the right direction. But that would mean tweaking GC's main PHP files right? If I update the framework my changes would be overwritten, right?

 

Thanks

Luca


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 14 July 2017 - 05:37 AM

Well, there are ways to safely overwrite the ones you want :D

I know you good enough to  find out the best solution around for the same.

Happy GCing :)