Hi everyone, I want to know how to get the Route from the server Scrips of Virtual Doctype.
I try frappe.local.request.path or full_path, frappe.local.form_dict.
However, it returned to the path of the function calling and frappe.get_route() not working in Server Scripts
expectation I will get in Server Scripts Virtual Doc: http://mysite.localhost:8000/app/doc/view/list?doc=doc_id
Hi, I have made a solution. I use args variable when calling Get_list in Virtual Doctype, it has a filters field, we will rely on that field to determine the route or do anythings else with it. Like this:
@staticmethod
def get_list(args):
filters = args.get("filters", [])
Hope it to help u