Fetch from employee master

I need to fetch full name of employee in supplier page

ASSIGNED TO IS EMPLOYEE ID , Its fetching employee list

i do this but not working


Write everything in small case:



Divyesh Mangroliya

Its working fine.


In Version 14, I tried add fetch but it’s not working.

Please try

frappe.ui.form.on('Material Request', {
	refresh(frm) {
	cur_frm.cscript.emp = function(doc) {. 
	return frappe.call({
		method: "frappe.client.get_value",
		args: {
		    'doctype' : 'Employee',
		    'filters' : cur_frm.doc.emp,  
		    'fieldname' : ['employee_name']
		callback: function(r) {
			var get_emp_name = (r.message.employee_name);
 			frm.set_value("emp_name", get_emp_name);