Child pages
  • Inheritance Model

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
function extending() {
	var _jsForm = solutionModel.getForm('formC')
	_jsForm.extendsForm = solutionModel.getForm('formB')
}

All the element on the form are accessible in the solutionModel also the elements that are inherited from a other form they can be accessed as if they are on the sub form.

Overwrite methods

On the child form you will inherit all the methods of the super form. You can overwrite these methods. When you do this, Servoy will generate a method for you with a call to it's super in it.

...