Form Template Inheritance

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

Form Template Inheritance

Postby ylockson » Thu Nov 22, 2012 7:51 am

1.create form aaa that extends form bbb (that contains methods, form variables, etc... to be used by in form aaa)
2.save form aaa as form template bbb
3.create form ccc using form template bbb
4.I expected form ccc to inherit Properties definitions of form aaa (which is done correctly)
5.I expected Events definitions such as onLoad, onRecordSelection, etc... to be inherited as well but these are not.

Is this a bug or an intentional feature?
ylockson
 
Posts: 59
Joined: Thu Mar 01, 2012 8:40 am

Re: Form Template Inheritance

Postby rgansevles » Fri Nov 23, 2012 10:27 pm

ylockson,

A form template only saves the form properties and event handler names.
The code of the event handlers is not copied (no code duplication)

When you apply a template to a form template (via DnD from palette or in new-form-wizard), the event handlers from the template are matched on against existing methods (based on method name)

Hope this helps,
Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: Form Template Inheritance

Postby ylockson » Sun Nov 25, 2012 2:22 pm

Thanks for the explanation, Rob.

Regards.
ylockson
 
Posts: 59
Joined: Thu Mar 01, 2012 8:40 am


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 7 guests

cron