Page 1 of 2

Servoy 5.1 beta 1

PostPosted: Fri Jan 15, 2010 4:48 pm
by Jan Blok
We are pleased to announce the immediate availability of Servoy 5.1 beta 1

This version is available through auto update only, always make a backup of your current Servoy installation (directory and database) before upgrading.
To update eclipse open, Window -> Preferences (update sites), change:
-The servoy update site in eclipse to: http://www.servoy.com/developer/5xx_updates/beta
-Disable both eclipse.org update-sites for now, since there is a problem at the eclipse side!

Client changes:
[enh] 82735 need JS function to check if server is valid
[enh] 196318 close solution in smart client shows empty select dialog when solution browsing is turned off
[enh] 263349 "Error in relation message" when having network issues
[enh] 258284 Performance enhance in solution load time
[fix] 265254 Issue saving data with Servoy v.5
[fix] 265967 Calendar Field throws error while form is in find mode webclient only.
[fix] 266484 Strange issue with find command
[fix] 263706,256819 onDataChange not triggered in Web Client
[fix] 260005 On TABLE_VIEW forms, applying sort pragmatically is not reflected on the grid column heading image
[fix] 255897 return DRAGNDROP.NONE seems not to work in webclient
[fix] 251812 page counter falls off the screen when showing formINDialog
[fix] 254623 WebClient\- application.showFormInDialog() with pop-up blockers
[fix] 257999 Strange behaviour i18n editor filter
[fix] 261219 The JSButton.onAction returns null instead of a JSMethod when the button's click event handler is a method in a parent form
[fix] 264413 servoy_blobloader not working all the time in the webclient
[fix] 264414 Strange intermittent issue in calcs
[fix] 84713 Sorting LanguageList in i18n area's in smartclient preferences
[fix] 263311 Valuelist global method double entries
[fix] 262382 databaseManager.getFoundSetDataProviderAsArray() fails with calculation field
[fix] 262458 Tab sequence in Web Client not functioning properly
[fix] 264630 The onRightClick event doesn't work on a TEXT_FIELD in find mode
[fix] 254606 calculations that uses getRecord() over a relation will not be triggered when the related records value is changed.
[fix] 208554 Sink When Last property not working anymore in printing
[fix] 264400 Webclient default form style
[fix] 261350 Table view webclient on focus loop
[fix] 262349 Using addTableFilterParams with MySQL
[fix] 260294 Saved Decimal calculation issue
[fix] 264412 The method application.showFormInDialog changes the title of the main SmartClient window and does not revert it back when the dialog is closed
[fix] 266313 Calendar not working in the Web Client
[fix] 264729 Table view resize with anchored columns inside tab-panel
[fix] 260334 anchoring tableview in webclient
[fix] 244296 Table view column ancoring doesn't work right
[fix] 216678 foundset.addFoundSetfilterParam behavior when foundset has edited records and autosave is off is not well defined

-MacOSX specific:
[fix] 260085 the dock and shortcut ICON always shows java coffee-cup on OSX (java 1.5 only) no matter what image or setting you use (solution included)
[fix] 218700 Mac client doc icon ugly
[fix] 252271 Servoy dialogs displaying icons from Adobe & Entourage

-onResize event on forms
[enh] 194900,219455,210516,175965 Need notification event when a form is re-sized

-Native splitpane support:
[enh] 63616 Investigate jsplitpane support for webclient
[enh] 177394 splitter in webclient
[fix] 220083 Provide an option for having a splitter and resize at runtime controls placed on the same form and bound to the same table

-Formatting:
[enh] 260027 Introduce DateFormat mask as an extra param for dates like dd-MM-yyyy\|mask
[enh] 260028 Introduce a nice editor for formats in the Servoy Developer
[enh] Support field formatting in Web Client

-Profiles:
[enh] 65175 login name should be remembered based on server not globally
[enh] 39707 save user settings in user property file
[enh] 261014 Client side preference to enable/disable use of http tunneling
[fix] 265701 deeplinks with parameters don't generate a shortcut


Developer changes:
[enh] 156015 Disallow duplicate and unscriptable tab names
[enh] 258353 Error when creating twice server with the same name
[enh] 256282 exception property missing on JSRecord node under databasemanager in Solution Explorer
[enh] 254257 lookup value from column should generate warning if element(s) does not exist
[enh] Improved "Suggest Foreign type" wizard
[enh] Improved JSLib node: added missing nodes, functions, and properties, moved functions and properties to the correct location
[enh] Renamed "Form design" perspective to "Servoy design"
[fix] 255723 fontchooser doesn't insert anything into a stylesheet
[fix] 197643 Link with editor button on Navigator view doesn't work
[fix] 260787 can't fix a warning: element in form myForm is outside the bounds of the form
[fix] 219739 Using DEFAULT as color not working correctly
[fix] 247344 Javascript editor: method at end of file moves to the top after save when there is no newline after last closing bracket
[fix] 257377 Changes done by SolutionModel are visible during TeamSync in Eclipse
[fix] 261368 Security markers => no security info loaded, but editors can save
[fix] 255646 Pushing updates to DebugSmartClient should be delayed
[fix] 264921 Changing solution name at importing is not working
[fix] 258348 ctrl-L behaviour fails
[fix] 261353 CTRL+A isn't working in most places in developer
[fix] 260024 strange behaviour editing form elements
[fix] 264359 escape characters in I18n messages on application server in %%...%% strings
[fix] 118409 Debugger - Watch - Doesn't show last variable value.

Server changes:
[enh] List network errors in orange (instead of red) in adminpage, since no-one can prevent or fix those.
[enh] 260859 Please add divider lines between licenses on the admin page
[enh] Added actual RMI port used by the Servoy to Admin page
[enh] Added button to enable/disable tracing on the Server Log page of the Admin Page

Plugin/Beans changes:
[enh] 262985 Unable to add body with HTTP plugin poster
[enh] added addHeader method on Poster object of HTTP plugin
[fix] 260887 The serialize plugin does not handle JavaScript arrays
[fix] 254253 DbTreeView Problem
[fix] 263436 Popup Plugin in Smart Client: Identifier not found

-Make all possible functions from the file plugin work in webclient:
[enh] 133204 In webclient, ability to open files from database through scripting
[enh] 244315 Need a way to Load a media file without having the user click the little icon in a media field

-Headlessclient plugin:
[enh] 253373 headlessclient
[enh] 128089 Plugin to start a client on the server to execute a long running process

-Window Plugin (to replace kiosk,menubar,popupmenu)
[enh] 121821 menubar, popupmenu and kiosk plugin merge (into window plugin)
[enh] added fullscreen paramter to application.showFormInDialog()
[fix] 264399 difference in predefined param for function plugins.menubar.getMenu
[fix] 146131 Menubar plugin toolbar 'cached' between stop and start of debug smart client

Re: Servoy 5.1 beta 1

PostPosted: Sat Jan 16, 2010 12:29 pm
by Kahuna
Eclipse > Help > Check for Updates

Does not show the beta upgrade? Should it?

Re: Servoy 5.1 beta 1

PostPosted: Sat Jan 16, 2010 12:36 pm
by Hans Nieuwenhuis
Hi Ian,

use http://www.servoy.com/developer/5xx_updates/beta as update site in your preferences

I did and it works.

Regards

Re: Servoy 5.1 beta 1

PostPosted: Sat Jan 16, 2010 12:45 pm
by Kahuna
Hans Nieuwenhuis wrote:Hi Ian,

use http://www.servoy.com/developer/5xx_updates/beta as update site in your preferences

I did and it works.

Regards


Excellent thanks Hans.

Re: Servoy 5.1 beta 1

PostPosted: Sat Jan 16, 2010 1:28 pm
by Harjo
Pretty impressive guys!! :D
So many features we ask are in this release, can't wait to play with it.

thanks for all the hard work!

Re: Servoy 5.1 beta 1

PostPosted: Sat Jan 16, 2010 2:10 pm
by Hans Nieuwenhuis
Agree with Harjo : splendid work ( again !!)

Discovered an issue with stored procedure/calcs :

after the update from 5.0 to 5.1 beta, I get problems with calculations using stored procedure.

the following code :

Code: Select all
var args = new Array();
   args[0] = java.sql.Types.NUMERIC;
   args[1] = offekrt_id
   var typesArray = new Array();
   typesArray[0] = 1;
   typesArray[1] = 0;
   var proc_declaration = '{?=call get_offerte_vkbedr_tot(?)}';
   var dmesp = plugins.rawSQL.executeStoredProcedure('berp2', proc_declaration, args, typesArray, 1);
   return dmesp.getValue(1, 1);


Gives the following error : ( it works fine in 3.5, 4.x, 5.0 )

Exception executing calculation: calc_verkoopprijs_totaal of table offertekaarten, error: java.lang.ClassCastException: com.servoy.j2db.scripting.Zjb cannot be cast to com.servoy.j2db.dataprocessing.JSDataSet
> java.lang.ClassCastException: com.servoy.j2db.scripting.Zjb cannot be cast to com.servoy.j2db.dataprocessing.JSDataSet

Regards,

Re: Servoy 5.1 beta 1

PostPosted: Sat Jan 16, 2010 5:09 pm
by Kahuna
I posted this earlier today, before I saw the beta - but having loaded it I still have the same problem

My Original Post viewtopic.php?f=2&t=13536


I thought this fixed my problem - but not so:
[fix] 264412 The method application.showFormInDialog changes the title of the main SmartClient window and does not revert it back when the dialog is closed


I have a form in dialog, FormA, with form title 'Component Images' (that appears in the window top bar), which opens a print preview form from a button - which also seems to automatically be in dialog too (not expected but not a problem - makes sense really).

After closing the print preview the original dialog FormA has reverteded to the form name (rather than the title text) - which will I think be a point of concern for users.

Is it a bug?

Re: Servoy 5.1 beta 1

PostPosted: Sat Jan 16, 2010 5:18 pm
by jcompagner
Kahuna wrote:I posted this earlier today, before I saw the beta - but having loaded it I still have the same problem

My Original Post viewtopic.php?f=2&t=13536


I thought this fixed my problem - but not so:
[fix] 264412 The method application.showFormInDialog changes the title of the main SmartClient window and does not revert it back when the dialog is closed


I have a form in dialog, FormA, with form title 'Component Images' (that appears in the window top bar), which opens a print preview form from a button - which also seems to automatically be in dialog too (not expected but not a problem - makes sense really).

After closing the print preview the original dialog FormA has reverteded to the form name (rather than the title text) - which will I think be a point of concern for users.

Is it a bug?


that sounds a bit different then case 264412, because you work here with a printpreview that doesnt restore the right name
Please make a case for this.

Re: Servoy 5.1 beta 1

PostPosted: Sat Jan 16, 2010 5:20 pm
by jcompagner
Hans Nieuwenhuis wrote:after the update from 5.0 to 5.1 beta, I get problems with calculations using stored procedure.

the following code :

Code: Select all
var args = new Array();
   args[0] = java.sql.Types.NUMERIC;
   args[1] = offekrt_id
   var typesArray = new Array();
   typesArray[0] = 1;
   typesArray[1] = 0;
   var proc_declaration = '{?=call get_offerte_vkbedr_tot(?)}';
   var dmesp = plugins.rawSQL.executeStoredProcedure('berp2', proc_declaration, args, typesArray, 1);
   return dmesp.getValue(1, 1);


Gives the following error : ( it works fine in 3.5, 4.x, 5.0 )

Exception executing calculation: calc_verkoopprijs_totaal of table offertekaarten, error: java.lang.ClassCastException: com.servoy.j2db.scripting.Zjb cannot be cast to com.servoy.j2db.dataprocessing.JSDataSet
> java.lang.ClassCastException: com.servoy.j2db.scripting.Zjb cannot be cast to com.servoy.j2db.dataprocessing.JSDataSet


make a case but do attach the full stacktrace that should be in the log for this one.

Re: Servoy 5.1 beta 1

PostPosted: Sat Jan 16, 2010 5:51 pm
by Hans Nieuwenhuis
Thanks Johan,

Created case : 267810

Re: Servoy 5.1 beta 1

PostPosted: Sun Jan 17, 2010 12:48 pm
by Hans Nieuwenhuis
When I run my application in developer it runs.

When I start it in Server it stops with the following error in the Java Console :

Code: Select all
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/servoy/j2db/server/headlessclient/IMediaUploadCallback
   at com.servoy.extensions.plugins.file.FilePlugin.getScriptObject(FilePlugin.java:62)
   at com.servoy.j2db.scripting.Zk.get(Zk.java:37)
   at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1641)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1429)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1418)
   at org.mozilla.javascript.gen.c34._c0(butl_onOpen:2049)
   at org.mozilla.javascript.gen.c34.call(butl_onOpen)
   at com.servoy.j2db.scripting.Ztb.executeFunction(Ztb.java:154)
   at com.servoy.j2db.Zac.Za(Zac.java:224)
   at com.servoy.j2db.Zbc.Za(Zbc.java:244)
   at com.servoy.j2db.Zac.Za(Zac.java:345)
   at com.servoy.j2db.ClientState.clearLoginForm(ClientState.java:94)
   at com.servoy.j2db.J2DBClient.clearLoginForm(J2DBClient.java:1483)
   at com.servoy.j2db.scripting.JSSecurity.js_login(JSSecurity.java:233)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:179)
   at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:353)
   at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:81)
   at org.mozilla.javascript.gen.c2._c0(login:166)
   at org.mozilla.javascript.gen.c2.call(login)
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:387)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3127)
   at org.mozilla.javascript.gen.c2.call(login)
   at com.servoy.j2db.scripting.Ztb.executeFunction(Ztb.java:154)
   at com.servoy.j2db.Ztb.Za(Ztb.java:761)
   at com.servoy.j2db.Ztb.Za(Ztb.java:437)
   at com.servoy.j2db.Zzb.Za(Zzb.java:6)
   at com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:51)
   at com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:39)
   at com.servoy.j2db.ui.BaseEventExecutor.fireActionCommand(BaseEventExecutor.java:55)
   at com.servoy.j2db.dataui.Zab.actionPerformed(Zab.java:3)
   at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
   at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
   at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
   at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
   at java.awt.Component.processMouseEvent(Unknown Source)
   at javax.swing.JComponent.processMouseEvent(Unknown Source)
   at java.awt.Component.processEvent(Unknown Source)
   at java.awt.Container.processEvent(Unknown Source)
   at java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
   at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
   at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Window.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.servoy.j2db.server.headlessclient.IMediaUploadCallback
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
   ... 59 more


Any idea what the problem is here ?
Regards

Re: Servoy 5.1 beta 1

PostPosted: Mon Jan 18, 2010 11:25 am
by jcompagner
Hans Nieuwenhuis wrote:When I run my application in developer it runs.

When I start it in Server it stops with the following error in the Java Console :

Code: Select all
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/servoy/j2db/server/headlessclient/IMediaUploadCallback
   at com.servoy.extensions.plugins.file.FilePlugin.getScriptObject(FilePlugin.java:62)
   at com.servoy.j2db.scripting.Zk.get(Zk.java:37)
   at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1641)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1429)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1418)
   at org.mozilla.javascript.gen.c34._c0(butl_onOpen:2049)
   at org.mozilla.javascript.gen.c34.call(butl_onOpen)
   at com.servoy.j2db.scripting.Ztb.executeFunction(Ztb.java:154)
   at com.servoy.j2db.Zac.Za(Zac.java:224)
   at com.servoy.j2db.Zbc.Za(Zbc.java:244)
   at com.servoy.j2db.Zac.Za(Zac.java:345)
   at com.servoy.j2db.ClientState.clearLoginForm(ClientState.java:94)
   at com.servoy.j2db.J2DBClient.clearLoginForm(J2DBClient.java:1483)
   at com.servoy.j2db.scripting.JSSecurity.js_login(JSSecurity.java:233)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:179)
   at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:353)
   at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:81)
   at org.mozilla.javascript.gen.c2._c0(login:166)
   at org.mozilla.javascript.gen.c2.call(login)
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:387)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3127)
   at org.mozilla.javascript.gen.c2.call(login)
   at com.servoy.j2db.scripting.Ztb.executeFunction(Ztb.java:154)
   at com.servoy.j2db.Ztb.Za(Ztb.java:761)
   at com.servoy.j2db.Ztb.Za(Ztb.java:437)
   at com.servoy.j2db.Zzb.Za(Zzb.java:6)
   at com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:51)
   at com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:39)
   at com.servoy.j2db.ui.BaseEventExecutor.fireActionCommand(BaseEventExecutor.java:55)
   at com.servoy.j2db.dataui.Zab.actionPerformed(Zab.java:3)
   at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
   at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
   at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
   at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
   at java.awt.Component.processMouseEvent(Unknown Source)
   at javax.swing.JComponent.processMouseEvent(Unknown Source)
   at java.awt.Component.processEvent(Unknown Source)
   at java.awt.Container.processEvent(Unknown Source)
   at java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
   at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
   at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
   at java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.awt.Window.dispatchEventImpl(Unknown Source)
   at java.awt.Component.dispatchEvent(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.servoy.j2db.server.headlessclient.IMediaUploadCallback
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
   ... 59 more


Any idea what the problem is here ?
Regards


yes, i am fixing that right now.

Re: Servoy 5.1 beta 1

PostPosted: Mon Jan 18, 2010 12:19 pm
by rgansevles
Hans Nieuwenhuis wrote:Agree with Harjo : splendid work ( again !!)

Discovered an issue with stored procedure/calcs :

after the update from 5.0 to 5.1 beta, I get problems with calculations using stored procedure.



This is fixed in next bete.

Rob

Re: native splitpane?

PostPosted: Mon Jan 18, 2010 3:23 pm
by Gabi Boros
ron@ambitius.com wrote:Wow, but how?
Don't see an element on the toolbar for that.

Ron

using a tab panel and setting its orientation to : SPLIT HORIZONTAL / VERTICAL