Create new Bulk Action Button

Hi to all,
does anyone have ever tried to create a new bulk actions button from scratch in List View?
I have too much actions in a module and appending them to current one is too confusing.

Tried to see the code on browser debugging tools but not so clear how it works the current one.
Any help will be appreciate.

Attached screenshot regarding what i would like to achieve.
Many thanksmy_new_bulk_action


The buttons:

  • present into files themes/SuiteP/include/ListView/ListViewPaginationTop.tpl and themes/SuiteP/include/ListView/ListViewPaginationBottom.tpl
  • include from themes/SuiteP/include/ListView/ListViewGeneric.tpl
  • created in include/ListView/ListViewSmarty.php

Look at line of file themes/SuiteP/include/ListView/ListViewPaginationTop.tpl :

{sugar_action_menu id=$link_action_id params=$actionsLink}

You should do custom files:

  • themes/SuiteP/include/ListView/ListViewGeneric.tpl
  • themes/SuiteP/include/ListView/ListViewPaginationTop.tpl
  • themes/SuiteP/include/ListView/ListViewPaginationBottom.tpl
  • include/MVC/View/views/view.list.php with custom function which will create the buttons.

The files ListViewGeneric.tpl and view.list.php SuiteCRM will find automatically and ListViewPaginationTop.tpl and ListViewPaginationBottom.tpl should be write directly.

Thanks for the hint…
I will do some tests and I’ll let you know.