Servoy 4: Template for form properties

Does anyone know ‘if’ we still can define a template with form properties in Servoy 4 and if the answer is ‘yes’ where or how to do this?

Thanks!

Marc,

The templates have not been implemented in Servoy4 (so the answer is ‘no’).

Form inheritance and form copy are ways to accomplish ‘standard’ forms that can be extended/modified.
Do people have a need for the servoy-3 style templates in Servoy 4?

Rob

I would like them back, yes…but could live without.

greg.

Admitted: the ability to ‘cross-modular’ copy forms could be a replacement for the templates.
So there’s no real urgent need for this and ‘yes’ we could live without it.

My question was initiated as I created a new form in a brand new solution and was able to select a template, but couldn’t find where to define it.

we have a bit better idea of templates for the further and that is something like you make a form
that you then say this is a template form and you can set properties on the form but also on a button or label and then if you use that form template
as a template for the real form we will copy all those values over including from buttons and labels and fields
So if you place a new field it will look at the template form if it has a field and copy the values that you set on that on to that new field (like size or class)

Currently this is just an idea but something like this would be very nice i think.

Currently this is just an idea but something like this would be very nice i think.

Hi Johan,

When will you be finished programming this? :lol:

Serious now:
sounds good, but what’s the role of css in this idea?
What we don’t want (I guess) is a situation where the ‘formtemplate-definition’ overrules the css.

you can set which style class you want to use on forms/buttons

But yes if you set a property like background on a button then this will be copied over so you just have to make
sure you dont do that in your template. Its all up to you

rgansevles:
Do people have a need for the servoy-3 style templates in Servoy 4?

Rob

Yes I do. I was searching for it and I didn’t find it.
Now for each new form I have to set all the default settings, that I use all over my application.
The 3.5 style templates were perfect for that

jcompagner:
we have a bit better idea of templates for the further and that is something like you make a form
that you then say this is a template form and you can set properties on the form but also on a button or label and then if you use that form template
as a template for the real form we will copy all those values over including from buttons and labels and fields
So if you place a new field it will look at the template form if it has a field and copy the values that you set on that on to that new field (like size or class)

Currently this is just an idea but something like this would be very nice i think.

This would be a good alternative!

Martin,

Servoy release 4.2 will support templates.

A template is a set of elements with pre-configured properties.
Basically you select a number of elements on a form and choose ‘save as template’.
The template can then be used anywhere to place these items as a group or it can be used as a form-template (you can select it in the new-form-dialog).

Rob

Wow! I’d love to see that.

Can’t wait for 4.2. Thanks!

Great, but is it possible to have multiple template forms?

I have 3 different kind of forms, so I would need 3 template forms.

Sure, you can have a zillion.

Rob

rgansevles:
Sure, you can have a zillion.

Rob

if you follow robs advice to have a zillion do remember to use the -Xmx system properties of java… ;)
i would say -Xmx2G would be a nice start. :)