Route for another Doctype

Hello ,
i am asking for how routing done in frappe ?
i want to create Button that redirect to another doctype passing with it Custom filter

example :
Button redirect to Active User (to User list page with the new filter)

thanks in advance

1 Like

Add your filters in frappe.route_options dict

frappe.route_options = {"key": "value"}
frappe.set_route("List", "User")


frappe.route_options = {“name”: “helloo”}
frappe.set_route(“Form”, “Student Batch”, “New Student Batch”);

above code opening new instance of student batch

but how to get parameter name from student batch

1 Like

Hi did you get it? open a new doctype with parameters from route?

Did you try frappe.get_route()

I think the answer is
new_record = frappe.model.make_new_doc_and_get_name("Doctype");
But I can’t seem to get anything passed to it.
How does get_route work?