Using Custom Scripts, I have not been able to pull documents or values of fields using frappe.model.get_doc and frappe.model.get_value for documents that is currently on the existing page that the browser is viewing. E.g. If It is viewing a Project with ID 0001 I can only use get_doc / get_value to pull the Project with ID 0001.
If I try to pull Project with ID 0002 it returns Null.
Is this no longer available in v5? - perhaps due to some security patch. If so, are there any alternatives?
May I also ask, when using with_doc, and if we use set_value, what function do we call to commit the set_value to the database? I have the following custom script running within the Project doctype and I want to save data to the Task doctype. The following does not work btw: