Problem
Currently, frappe.call() and window.frappe are not available in page components, especially within the run_script method. This limits the ability to make server-side calls or access boot information directly from component events.
Suggestion
Please expose frappe.call() and frappe.boot to the frontend environment within page components. Making these available inside component event scripts (like run_script) would allow:
- Direct backend API calls
- Access to session, user, and system context (
frappe.boot)
- Easier integration of dynamic data
Benefit
This enhancement would make it easier for developers to build dynamic, data-driven components without extra workarounds. It aligns better with the standard Frappe development experience.
Thanks for considering this!
Problem
Currently,
frappe.call()andwindow.frappeare not available in page components, especially within therun_scriptmethod. This limits the ability to make server-side calls or access boot information directly from component events.Suggestion
Please expose
frappe.call()andfrappe.bootto the frontend environment within page components. Making these available inside component event scripts (likerun_script) would allow:frappe.boot)Benefit
This enhancement would make it easier for developers to build dynamic, data-driven components without extra workarounds. It aligns better with the standard Frappe development experience.
Thanks for considering this!