Hi,
I have a form wich is based on another form and one of the things it inherits is the onShow method. The thing is that in addition to executing the inherited onShow method i want it to do something else. How can i do this?
Thanks
Hi,
I have a form wich is based on another form and one of the things it inherits is the onShow method. The thing is that in addition to executing the inherited onShow method i want it to do something else. How can i do this?
Thanks
nromeou
You can call methods from the super-form explicitely via the _super keyword:
function myOnShow(firstShow, event) {
return _super.myOnShow(firstShow, event)
// add extra code here for onshow in the subform
}
When you have have Servoy create a form method for an event in the subform and give it a name that exists in (one of the) super-forms, this code is generated for you.
Hope this helps,
Rob
rgansevles:
function myOnShow(firstShow, event) {
return _super.myOnShow(firstShow, event)
// add extra code here for onshow in the subform
}
_super is the keyword to use, yes, but actually Rob, if you add anything extra where you said to add, nothing will really execute
bad bad rob.
I just made things not too obvious, just to keep you guys sharp…