Add Action Menu Item in Report View

For List Views, you can add a menu item in the Actions menu through doctype_list_js in using the method How do you achieve the same with Report Views?

Hi @mincerray,

Please apply it.

frappe.listview_settings['Your DocType'].refresh = function(listview) {
    // add button in menu"Menu"));
   // add button in action"Actions"));

Thank You!


wow, thanks!

Hello, @mincerray
your code is working ,but

i want to add new button just left side of "list view button ", after clicking new button,i want to open new doctype.

thanks, this code really work.