forked from frappe/frappe
-
Notifications
You must be signed in to change notification settings - Fork 9
Form Rendering
Anand Doshi edited this page May 17, 2013
·
3 revisions
- Route is set to
app.html#Form/[DOCTYPE]/New DOCTYPE 1. - Browser fires the
hashchangeevent. -
haschangeis bound inrouter.jsto callwn.routemethod. - Recognising that it is a Form which we are trying to open,
wn.routecallswn.views.formview.show -
formview.showcreates a new_f.Frmobject, changes the container to point to this new form and calls its refresh method -
refreshmethod of the form object callssetnewdoc - Then, Following events are fired in sequence:
-
cur_frm.cscript.onload(when opening for the first time) cur_frm.cscript.refresh-
cur_frm.cscript.onload_post_render(if onload is called)
-