General Ledger report was not refresh automatically when changing the filter value especially when you had added any event for filter like on_change, on_click.
So, I just want to know is there any refresh method or custom script function to refresh report (like doctype have refresh_fields() or refresh_field() which are not used here) after changing value.
Thanks in advance.
I think you might be looking for frappe.query_report.refresh();
eg:
(in a report’s .js file)
frappe.query_reports["Name of Report"] = {
"filters": [
{
"fieldname":"your_field_name",
//other attributes
"on_change": function(query_report){
//code that you want to execute on change
frappe.query_report.refresh();
},
}
Not working for me in version 13, I want to do something when filter’s value change I tried on_change but that function not triggered when filter’s value changes. Any idea about this ?