upgrade Servoy 3.1.6 to 5.x

Questions and answers for all installation-related topics for Servoy products

upgrade Servoy 3.1.6 to 5.x

Postby gdurniak » Wed Jun 16, 2010 9:28 pm

we have an old solution, in need of upgrading

can this be done, in one shot?

any suggestions / warnings appreciated

greg
File Shoppe
gdurniak
 
Posts: 232
Joined: Thu Jul 08, 2004 7:25 pm
Location: Bayside, NY, USA

Re: upgrade Servoy 3.1.6 to 5.x

Postby ROCLASI » Wed Jun 16, 2010 9:42 pm

Hi Greg,

Well one thing that comes to mind is to put all your controller.find() code (to get INTO find mode) in an IF statement because there are situations where you won't get into find mode (unsaved invalid data for instance)and you will be editing code instead of putting in search criteria.
Code: Select all
if ( controller.find() ) {
   field1 = '%mysearch%';
   controller.search();
}


Another thing is that you might want to add databaseManager.saveDate() in places where you want to make sure the data is saved to the backend.

These 2 are the ones that I can think of right of the bat.


Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: upgrade Servoy 3.1.6 to 5.x

Postby Harjo » Wed Jun 16, 2010 10:28 pm

only those two? :shock:
what about the new JSEvent object?
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: upgrade Servoy 3.1.6 to 5.x

Postby swingman » Thu Jun 17, 2010 12:27 am

I'm upgrading two large solutions from 3.5.12 to 5.1.4, this is what I have found so far:

- You have to deal with all the errors and warnings from Servoy, we had 1,300 and 950 on the two projects. A few of these can be fixed using Servoy's 'Quick Fix' command.
- You need new versions of all plugins, since they now need to be signed by the vendors (IT2be and others provide new versions) or you'll have to sign them yourself.

- You should name all function parameters instead of using parameters[0], parameters[1] etc
- You can switch on strict mode for javascript to find more potential issues.
- Since you are going from 3.1, you may find some things are easier to implement using table events, but you don't have to change anything.
- A number of plugins including the popupMenu plugin have been combined, and the old plugins deprecated. Your code will still work, but the new window plugin seem significantly faster.

The new Servoy Eclipse-based developer is MUCH MUCH better than the old developer. It is quite different, but once you get used to it there is no way back. The profiler is great for spotting slow code and to see what is really going on. It is a much more productive environment.

Hope this helps,
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: upgrade Servoy 3.1.6 to 5.x

Postby ROCLASI » Thu Jun 17, 2010 9:29 am

Harjo wrote:what about the new JSEvent object?


Eh, yes. That one too (like I said, right of the bat. Didn't say this is all ;) )
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: upgrade Servoy 3.1.6 to 5.x

Postby gdurniak » Thu Jun 17, 2010 2:35 pm

Thanks to all. I see I have quite a bit of work to do

the If ( controller.find ) tip is very interesting ...

I did find a JSEvent explanation here:
http://www.servoyguy.com/knowledge_base ... o_servoy_5

greg
gdurniak
 
Posts: 232
Joined: Thu Jul 08, 2004 7:25 pm
Location: Bayside, NY, USA

Re: upgrade Servoy 3.1.6 to 5.x

Postby kurtbleicken » Thu Jun 17, 2010 6:35 pm

I just finished an upgrade from 3.5 to 5.1. There were 1759 errors and warnings. Very daunting, but in the end it was done in a few days.

There are some fixes that cannot be done using Properties. Laurian at Servoy taught me a trick to be able to see behind the interface and see the raw code.

If you are looking at the form: Click on Navigate in menubar, Show In, Navigator. It will highlight the form. Right click and open with text editor. Here you can usually figure out what the problem is.
Kurt Bleicken
Servoy 7
Executive Director, onRamp for nonprofits
kurtbleicken@gmail.com
Founder, AgentSphere, LLC
kurtbleicken@gmail.com
603.525.8019
kurtbleicken
 
Posts: 100
Joined: Mon Feb 12, 2007 11:36 pm

Re: upgrade Servoy 3.1.6 to 5.x

Postby gdurniak » Fri Mar 22, 2013 5:34 pm

another post about if ( controller.find() ) {

viewtopic.php?f=3&t=12951

odd that Find somehow worked in 3.1, but not in 4 and higher ( or I just didn't notice )

greg

> Well one thing that comes to mind is to put all your controller.find() code (to get INTO find mode) in an IF statement
gdurniak
 
Posts: 232
Joined: Thu Jul 08, 2004 7:25 pm
Location: Bayside, NY, USA


Return to Installation

Who is online

Users browsing this forum: No registered users and 6 guests