Things to look out for before moving to version 5

Hi guys,

I’ve searched the forum for things to take care of when moving from Servoy 3/4 to version 5, and I found that we need to make changes to handle function parameters and the new JSEvent. I would like to know what you guys did to address these - did you have some kind of sheet with a list of things to change? For example, do we need to change every method that used arguments[0] to arguments[1]? Any examples/details appreciated.

Also, is there a list somewhere of deprecated functions and their new counterparts (like foundset.getTableName() = getDataSource(), databaseManager.getDataSourceTableName())?

Thanks in advance,

Ben

Hi Ben,

When you open a pre-5 solution in Servoy 5 you get all the ‘problems’ nicely listed in the problems view.
This includes the methods that are used on any form/field/button event. There is also a Quick-Fix (command/ctrl-1) available that will mark those methods with a TODO comment (among other things).

So to be clear. Only methods that are linked to a form-, field- or button event will get the JSEvent passed. All other methods won’t be affected by this change.

As for the deprecated functions , I understand they are working on a wiki page for this.

Hope this helps.

Thanks Robert - I will check this out.

Ben