How to Override or Extend the query_report.js Class

Hi everyone,

I am trying to override or extend the query_report.js file to add a custom button to all reports.

I modified the core code and tested it successfully (after running bench build).

I’m looking for a better approach where I can override just the specific method through my custom app, ensuring future updates are not missed.

check the reference:

Hi @NCP Thanks for the response.

I did check those references, but the problem is I couldn’t be able to access the frappe.views.QueryReport to extend the class.

Hi @NCP Sorry for disturbing you,

Do you have any other solution for this?

No … !

1 Like