Hello sir I have added custom query for newly added doctype. Same query work on my local setup but not working on client’s local setup. i used following query
cur_frm.fields_dict[‘group_opm’].get_query = function(doc, cdt, cdn) { return “select p.name from tabProfile p, tabUserRole u where u.parent=p.name and u.role=‘Group Operations Manager’” ; }
It give me an error
TypeError: cur_frm.field_dict is undefined
Thanx & Regards Rohit
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
Hello sir I have added custom query for newly added doctype. Same query work on my local setup but not working on client's local setup. i used following query
cur_frm.fields_dict['group_opm'].get_query = function(doc, cdt, cdn) { return "select p.name from tabProfile p, tabUserRole u where u.parent=p.name and u.role='Group Operations Manager'" ; }
It give me an error
TypeError: cur_frm.field_dict is undefined
Thanx & Regards Rohit
–
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.