I try to fetch data in Maintenance Schedule Item but doesn’t work. What is wrong?
Change DocType to Maintenance Schedule
instead of child table doctype
‘Maintenance Schedule Item’ and try again.
I tried and received this error
SyntaxError: missing ) after argument list
at Class.setup (https://romcronos.erpnext.com/assets/js/form.min.js:266:41)
at _f.Frm.setup (https://romcronos.erpnext.com/assets/js/form.min.js:18:561)
at _f.Frm.refresh (https://romcronos.erpnext.com/assets/js/form.min.js:58:26)
at Class.load (https://romcronos.erpnext.com/assets/js/form.min.js:15:111)
at https://romcronos.erpnext.com/assets/js/form.min.js:15:4
at Object.with_doc (https://romcronos.erpnext.com/assets/js/desk.min.js:590:215)
at Class.show_doc (https://romcronos.erpnext.com/assets/js/form.min.js:13:14)
at https://romcronos.erpnext.com/assets/js/form.min.js:10:334
at Object.with_doctype (https://romcronos.erpnext.com/assets/js/desk.min.js:582:106)
at Class.make (https://romcronos.erpnext.com/assets/js/form.min.js:10:184)
check this syntax error in your script and fix it.
You can also follow this approach for fetching values, without writing any custom script.
Thank u brother