Hello Team,
Im trying to filter list of records using shortlist button when i click on button unable to filter the records but able to filter using in-build filter
frappe.listview_settings[‘Candidate form’] = {
onload: function (list_view) {
let me = this;
// Add the first button
list_view.page.add_inner_button(__('Shortlisted'), function () {
// Set the filter options
console.log("hi..")
frappe.route_options = {
'is_shortlisted': [ '=', 1 ]
};
// Refresh the list view with the new filter
list_view.refresh();
console.log(list_view)
});
}
};
Thanks,
Dhanvantari