Hi everyone,
I am working on a Frappe v14 project where I need to add extra Filters and Buttons to an existing Query Report (example: Donation report).
My situation:
- I have Administrator login for the site (so full access to the Desk UI).
- I can create Custom Reports from the Report List.
- I can create Client Scripts — but only for Form/List, not for Pages.
- I do not have Frappe backend server access (can’t update
query_report.js
or make code changes in apps).
I tried:
- Creating a Client Script targeting the Report, but it doesn’t work because Query Reports load inside the
query-report
Page. - Using
frappe.pages['query-report']
hooks, but my script doesn’t trigger because I can’t attach Client Scripts to Pages in the current setup. frappe.query_reports["Donation"]
exists but modifying it dynamically from the frontend without a proper hook isn’t reliable.
Questions:
- Is there any official way to customize a Query Report (add filters/buttons) from the frontend only?
- If not, would the only correct approach be creating a small Custom App where I can patch the Report JS properly?
- Are there any plans to allow Page-level Client Scripts officially in future Frappe versions?
Thanks a lot in advance!
Any guidance would be super helpful.