Skip to content

Enable frappe.call() and frappe.boot in Page Components #68

@0MUHAMMEDIRFAN

Description

@0MUHAMMEDIRFAN

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions