Child pages
  • Inheritance Model

Versions Compared

Key

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

...

The inheritance is not limited to 1 level, for example if you have there is a form a, form b and form c you can extend , form b is extended with a and c with b. The result is that form c will then have all the methods/variables/elements/properties/parts of form a, b and c.

...

A sub form will inherit all the methods of the super form. These methods can be overwritten. When this happens, Servoy will generate a method for you with a call to it's super in it.

...

In the generated method there will be '_super.newRecord(event)' this will call the original method on the super form. This can be removed if the super code doesn't to be called or you there can be put code before of after the call, if you it is put it after the super call don't forget to move the 'return'.

...