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 hooks.py using the method listview.page.add_action_item. 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
	listview.page.add_menu_item(__("Menu"));
   // add button in action
	listview.page.add_action_item(__("Actions"));
};

Thank You!

2 Likes

wow, thanks!