Created
July 26, 2016 04:22
-
-
Save ccfiel/255d92d97d7f4ae833db1c00ace3ff14 to your computer and use it in GitHub Desktop.
sample java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
frappe.ui.form.on("Anecdotal Note", "student", function (frm, cdt, cdn) { | |
frappe.call({ | |
method: "wela.disciplinary_notes.doctype.anecdotal_note.anecdotal_note.get_student_summary", | |
args: { | |
"student": frm.doc.student | |
}, | |
callback: function (r) { | |
frm.set_value("summary", r.message["result"]); | |
frm.set_value("contact_numbers", r.message["contact_numbers"]); | |
} | |
}); | |
}); | |
frappe.ui.form.on("Anecdotal Note", "onload", function(frm) { | |
frappe.call({ | |
method: "wela.school_setup.doctype.quarter.quarter.get_quarter", | |
callback: function (r) { | |
if (!frm.doc.quarter) { | |
frm.set_value("quarter", r.message["current_quarter"]); | |
} | |
} | |
}); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment