forked from frappe/frappe
-
Notifications
You must be signed in to change notification settings - Fork 1
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
hashchange
event. -
haschange
is bound inrouter.js
to callwn.route
method. - Recognising that it is a Form which we are trying to open,
wn.route
callswn.views.formview.show
-
formview.show
creates a new_f.Frm
object, changes the container to point to this new form and calls its refresh method -
refresh
method 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)
-