Description
Hi everyone,
I’m working with Frappe/ERPNext v16 and I’m trying to use Dynamic Filters in a Dashboard Chart.
While exploring the Dashboard Chart DocType, I noticed that it contains a Dynamic Filters section with a Dynamic Filters JSON field. These fields are visible in Customize Form, and they also exist in the DocType metadata.
I also found that the Frappe source code contains logic to read and process dynamic_filters_json, which suggests that Dynamic Filters are supported internally.
However, when I open a Dashboard Chart (either an existing one or a newly created one), I only see the normal Filters section. The Dynamic Filters section or any UI to configure dynamic filters is not displayed.
Example
My goal is to create a dashboard chart that automatically filters data using the logged-in user’s Session Default Company instead of storing a fixed company value.
For example:
-
User A → Session Default Company = Company A → Dashboard should automatically show Company A data.
-
User B → Session Default Company = Company B → The same dashboard should automatically show Company B data.
I expected to configure this using Dynamic Filters, but I cannot find any option in the Dashboard Chart form.
My Questions
-
Is the Dynamic Filters feature officially supported in Frappe v16?
-
Why is the Dynamic Filters section visible in Customize Form but not on the actual Dashboard Chart form?
-
Does this feature require enabling Developer Mode or any additional configuration?
-
Is
dynamic_filters_jsonintended only for internal use? -
Has anyone successfully used Dynamic Filters to make a Dashboard Chart use the Session Default Company or another user-specific value?
Any guidance or working examples would be greatly appreciated. Thank you!