Servoy 4.1.0 beta 3

We are pleased to announce the immediate availability of Servoy 4.1.0 beta 3.

Make a backup of your current Servoy installation (directory and database) before installing.

This version is available through the download page on the Servoy website (developer section). This version will also be available through auto update shortly.

Changes
[new] edit container relation support (self join with all siblings = relation to same table without keys) this allows to pass foundsets over tabpanels in a related way
[new] make saving of a single record possible through databaseManager.saveData(…) during autosave disabled, it’s possible to save a specific record
[new] databaseManager.nullColumnValidatorEnabled = false or true (disabeld/enabled the default null check, null check could influence business logic in an unwanted way while autosave is disabled)
[new] anchoring works in web client as seen in smart client

[enh] added ‘Show Form Designer’ pop-up menu to the javascript editor
[enh] case 151921: developer 4 sometimes starts too fast while the database is still initializing. we added a property “waitForNativeStartup” if set to true it will wait for the native startup process to finish execution before continuing to start developer
[enh] case 163057: Serclipse: color and font chooser not available on stylesheet editors
[enh] case 165250: remember the size of the I18N editor window
[enh] case 165822: sequence names are not allowed to be longer than 30 characters, now a warning is given instead

[fix] for blank debug client on mac when globals.js is open at startup and beans are used in scripting
[fix] for headless client running from Eclipse
[fix] case 158737: unwanted beep when selecting tablecolumns
[fix] case 160397: added confirm dialog for ‘remove column’
[fix] case 161655: unresolved onDataChange event on a field doesn’t result in a warning marker, whereas -unresolved- for the onAction of a field does
[fix] case 164758: Headless Client doesn’t work, throws RuntimeExceptions in developer
[fix] case 165117: non-Servoy projects in workspace to which by accident a Servoy nature was assigned keeps generating problems
[fix] case 165623: databaseManager.getServerNames() didn’t return all servers in developer
[fix] case 165964: I18N editor button fails silently when no I18N server/table has been defined, dialog added
[fix] case 166184: Serclipse: CodeCompletion improved
[fix] case 166564: checkboxes of selected solutions in modules selection dialog not selected

Known issues

  • non-editable date field can be changed via calendar
  • switching workspaces occasionally hangs developer

Changes in previous release
Servoy 4.1.0 beta 2

svroemisse:
[new] anchoring works in web client as seen in smart client

Awesome :!:
I can’t wait to see this in action :D

Eh, is it me or does the table editor no longer give us the ability to access the Details/Auto-Enter/Validation/Conversion tab when selecting a column.
Up to version 4.1b2 the column table grid came halfway the tab panel and showed the aforementioned tab panel when a row was selected. Now the table grid fills the whole tab.
Makes it very hard to set db sequence names for instance.

ROCLASI:
Up to version 4.1b2 the column table grid came halfway the tab panel and showed the aforementioned tab panel when a row was selected. Now the table grid fills the whole tab.[

It works for me. Can you show us the classical first three lines from the smart client Help->About dialog on your machine?

[new] anchoring works in web client as seen in smart client

Can you explain, what works? I tried a simple label with an background image (reduce & enlarge) but that does not work in webclient! :-(
I tried with fields in tableviews etc… but also not working.

ROCLASI:
Eh, is it me or does the table editor no longer give us the ability to access the Details/Auto-Enter/Validation/Conversion tab when selecting a column.
Up to version 4.1b2 the column table grid came halfway the tab panel and showed the aforementioned tab panel when a row was selected. Now the table grid fills the whole tab.
Makes it very hard to set db sequence names for instance.

Robert,

Clicking on a column in the table should make the tabs visible.

Rob

Hi Rob,

This is my version:
Version 4.1.0 b3-build 642
Java version 1.5.0_16-133 (Mac OS X)

Seems when I select a column and resize the tab in some way (in that specific order) then suddenly the tabs become visible:

Harjo:

[new] anchoring works in web client as seen in smart client

Can you explain, what works? I tried a simple label with an background image (reduce & enlarge) but that does not work in webclient! :-(
I tried with fields in tableviews etc… but also not working.

oke, I have created 3 cases, with all kind of issues I have with anchoring in webclient. ;-)

Hi Harjo,

Harjo:

[new] anchoring works in web client as seen in smart client

Can you explain, what works? I tried a simple label with an background image (reduce & enlarge) but that does not work in webclient! :-(
I tried with fields in tableviews etc… but also not working.

Seems the label does anchor correctly but the image doesn’t resize. Just add a border around it and you see what happens.
Also in my brief testing I’ve noticed that using a header or title header form part wreak havoc in the layout of the header objects. They suddenly are anchored from their position to the bottom of the window (even without having any anchors set :!:).
Again you can witness this behavior by setting the border property (to Line for instance).

Fields do anchor correctly in record view but they don’t in table view. But they don’t anchor in table view for me in Rich client either (Mac OS X).

that was exactly what I saw too!
I have filed those cases now.

but I have to say, if they can fix it, it looks VERY promising! :-)

I can’t reproduce the problem with table editor on mac. When I select a column the tabs show up all the time. Can you give some more details about this problem ?

Hi Laurian,

I reinstalled 4.1b3 again in a separate directory but using the same workspace and I get the same result.
Then I reinstalled 4.1b3 again in a separate directory but now using a new workspace and see the same thing BUT now resizing doesn’t help. So it actually goes from bad to worse :?
Tried the last thing twice with the same result.

This is what I do:

  • install 4.1b3 in a new directory using a new workspace
  • open developer
  • create a new server connection, save it
  • restart developer
  • select server connection and double click a table to open the table editor.
  • grid already uses the whole view which is different from 4.1b2 and below
  • select column and nothing happens.
  • resize the view and still nothing happens

Mac OS X 10.5.5 (Intel)
Java version 1.5.0_16-133

Hi Laurian,

Okay I am stupid. I need to view the table in the context of a solution. When I do that then the resize does work.
So the steps are this:

  • install 4.1b3 in a new directory using a new workspace
  • open developer
  • create a new server connection, save it
  • restart developer
  • create a solution and a new form using a table of the server connection
  • jump to the table editor using the form property ‘table’
  • grid already uses the whole view which is different from 4.1b2 and below
  • select column and nothing happens.
  • resize the view and the grid resizes and tabpanel appears

Hi Robert,

ROCLASI:
Hi Laurian,

Okay I am stupid. I need to view the table in the context of a solution. When I do that then the resize does work.
So the steps are this:

  • install 4.1b3 in a new directory using a new workspace
  • open developer
  • create a new server connection, save it
  • restart developer
  • create a solution and a new form using a table of the server connection
  • jump to the table editor using the form property ‘table’
  • grid already uses the whole view which is different from 4.1b2 and below
  • select column and nothing happens.
  • resize the view and the grid resizes and tabpanel appears

Still could not reproduce this issue. Please add a case and we will further investigate it. The only case when a column is selected and tabs should be invisible is when the column has no column info.

Laurian

Hi Laurian,

I created case #168452 for this.

I found another thing. When I have the Eclipse window small (default window size) so that the table editor will get scroll bars when the tab panel shows then it works as advertised. Select then column and the tab panel shows.
But I use a 23" screen and maximize Eclipse to use all of that and the tab panel doesn’t show when I select a column. It does only when I resize the table editor view.
So perhaps you use a smaller resolution screen and that’s the reason you can’t reproduce it ?
Try maximizing the view and then select a column.

Hi Robert,

ROCLASI:
Hi Laurian,

I created case #168452 for this.

I found another thing. When I have the Eclipse window small (default window size) so that the table editor will get scroll bars when the tab panel shows then it works as advertised. Select then column and the tab panel shows.
But I use a 23" screen and maximize Eclipse to use all of that and the tab panel doesn’t show when I select a column. It does only when I resize the table editor view.
So perhaps you use a smaller resolution screen and that’s the reason you can’t reproduce it ?
Try maximizing the view and then select a column.

This is fixed now and will be included in Servoy 4.1.0 b4.

new make saving of a single record possible through databaseManager.saveData(…) during autosave disabled, it’s possible to save a specific record[

Can you give an example of the syntax to save a single record? I can’t seem to figure out what to pass into databaseManager.saveData(???)

Also,
What do you do if you need to cancel out of a record while another record may be saved?

For instance I have a form for work orders that when opened I set autosave to false. While the user is looking at a work order, they can assign a customer to that work order. If they need to add a new customer I want to be able to pop open a new window and save that new customer, then they can continue on with the work order. So being able to save a single record will be useful, but what happens if they decide after they started a new customer they want to cancel that without it canceling the work order? Can you rollback a single record also?

Thanks

svroemisse:
[enh] case 151921: developer 4 sometimes starts too fast while the database is still initializing. we added a property “waitForNativeStartup” if set to true it will wait for the native startup process to finish execution before continuing to start developer

Sandor, where can I find this property?

THX,
Stef

Stef:

svroemisse:
Sandor, where can I find this property?

It’s in your /application_server/servoy.properties file.