To fetch value from server use frappe.client.get_value
frappe.call({ "method": "frappe.client.get_value", args: { doctype: "ToDo", fieldname: 'name', filters: { reference_name: frm.doc.name }, }, callback: function (r) { alert(r.message.name) }
});
what is meaning of fieldname in args and callback
ReplyDeletei want to add filter for start date and end date so that i get details between two specific dates.
ReplyDeletecurrently i am getting details for 365 days