Hi
var subjects = '';
//subjects = ['hello','world']
frappe.call({
method: "my_app.school_combined_grades_report.getParentSubjects",
callback: function (r) {
subjects = r.message["result"]
console.log(subjects)
}
});
frappe.query_reports["SOME REPORT"] = {
"filters": [
{
"fieldname":"parent_subject",
"label": __("Subject"),
"fieldtype": "Select",
"options": subjects,
}
]
}
r.message[“result”] is not empty, but in my filter options, subjects is empty.