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.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
On 25-Mar-2013, at 6:41 PM, Rohit Waghchaure <[email protected]> wrote:
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.