Solutionmodel Copy facilities

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

Solutionmodel Copy facilities

Postby martinh » Thu Jul 09, 2009 12:08 pm

Please add Copy facilities to the solutionmodel.

For example:

Code: Select all
var OldJSField = myJSForm.getField('myField')

var JSField = myJSForm.newField('quantity',SM_DISPLAYTYPE.TEXT_FIELD, 400, 170, 70, 20)

JSField = SolutionModel.copyField(OldJSField , JSField)


This method SolutionModel.copyField() should copy all properties of the source JSField into the destination JSField and it returns a JSField with these copied properties.
The only properties that should not be copied are the properties that are set using the newField() method.

This is very useful when you want to remove a field from a certain form and replace somewhere else. Specially because moving fields in TableView is not working.
In this case, I can keep the original properties.
Remove the field
Add the field on a different position
And with the copy funtion I have the same properties as I designed

This request is not only for fields, but also for labels, buttons etc
Martin
------------------------------------------------
Servoy Developer
Version 5.2.10/5.2.13
Java version 1.6 update 31
Database SQL Server 2008 R2
martinh
 
Posts: 857
Joined: Wed May 09, 2007 5:34 pm
Location: Belgium

Re: Solutionmodel Copy facilities

Postby ROCLASI » Thu Jul 09, 2009 12:11 pm

Hi Martin,

Did you file this request also in the support system ?
Only this way Servoy can track all request and bug reports.
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5319
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Solutionmodel Copy facilities

Postby martinh » Thu Jul 09, 2009 12:12 pm

ROCLASI wrote:Hi Martin,

Did you file this request also in the support system ?
Only this way Servoy can track all request and bug reports.


Yes I just did. Request #225052
Martin
------------------------------------------------
Servoy Developer
Version 5.2.10/5.2.13
Java version 1.6 update 31
Database SQL Server 2008 R2
martinh
 
Posts: 857
Joined: Wed May 09, 2007 5:34 pm
Location: Belgium


Return to Discuss Feature Requests

Who is online

Users browsing this forum: MSN [Bot] and 2 guests