# Servoy 3.5 beta 3

**URL:** <https://forum.servoy.com/t/servoy-3-5-beta-3/7403>\
**Category:** Classic Servoy\
**Created:** [April 26, 2007, 3:24pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403 "2007-04-26T15:24:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![svroemisse](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@svroemisse](https://forum.servoy.com/u/svroemisse)\
**Post date:** [April 26, 2007, 3:24pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/1 "2007-04-26T15:24:45Z")

</div>

We announce the immediate availability of Servoy 3.5 Beta 3

**NOTE:** this is PRE-RELEASE SOFTWARE, use with caution and make BACKUPS before you start.

This version is available through the download page on the Servoy website (developer section).

Because of our move to Tomcat 6, you will need to do a full install for this beta. We plan to have the auto updater working again for future releases.

**Changes**  
[new] suggestions for global method assignments to form events  
[new] column (i18n) title and description  
[new] table events for hooking methods to insert, delete and update actions  
[new] location parameter in addTab to insert a tab at a specified location  
[new] validators on column data providers (can be defined on columns)  
[new] “or” notation possible in find fields, example: \>10||\<0  
[new] converters to automatically convert field data  
[new] possiblity to show non-modal form dialogs  
[new] skip the solution onload method in servoy developer by holding shift in select solution dialog while clicking solution to load  
[new] databaseManager.getViewNames()

[enh] in new records, the first field gets focus  
[enh] AJAX can be switched on and off via the admin page for web clients  
[enh] preventing duplicate pk’s in related search or sort (on non-pk columns)  
[enh] popup menu plugin working in web client

[chg] Java requirements, see below  
[chg] increased memory limit for windows service  
[chg] using native database function to limit sql results

[fix] data truncation problem with large sums on number columns  
[fix] duplicating find records with date ranges does not work  
[fix] when importing a solution using a table that used to exist, sequence on the table might get lost  
[fix] prevent auto creation of servoy sequences for existing tables  
[fix] databaseManager.getTableNames() did return views as well  
[fix] fix for record delete in combination with database-defined cascade delete  
[fix] DBTreeView data loading fix for incorrect data

**Java requirement changes**  
Due to the move to Tomcat 6, Servoy now requires Java 1.5 for both Servoy Developer and Servoy Server. Servoy smart client will still work with Java 1.4.

**Known issues**

- Serialize converter problem with multidimensional arrays
- The security.canInsert / canUpdate / canDelete functions sometimes return incorrect results
- DBTreeView bean does not work in runtime builder clients
- Popup menu plugin checkbox/ radio menu item not (yet) working in web client

Previous release:  
[http://forum.servoy.com/viewtopic.php?t=8169](http://forum.servoy.com/viewtopic.php?t=8169)

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [April 26, 2007, 3:34pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/2 "2007-04-26T15:34:10Z")

</div>

> [new] “or” notation possible in find fields, example: \>10||\<0

Very nice!

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [April 26, 2007, 3:58pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/3 "2007-04-26T15:58:58Z")

</div>

> [enh] popup menu plugin working in web client

Sounds also very impressive!

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [April 26, 2007, 4:51pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/4 "2007-04-26T16:51:54Z")

</div>

I am very interested in this method:

```auto
databaseManager.getFoundSet(server, table)

```

Is this supposed to return a foundset for whatever server/table? If yes, it doesn’t seem to work. It always returns something that looks like an empty String.

---

<div class="post-metadata">

**Author:** ![dpearce](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@dpearce](https://forum.servoy.com/u/dpearce)\
**Post date:** [April 26, 2007, 5:39pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/5 "2007-04-26T17:39:14Z")

</div>

Great job, a lot more working.

one thing though, i now have a lovely webclient modal dialog box.

how do i close it from a script??

the application.closeFormDialog() doesnt work.

am i missing something (as usual)

---

<div class="post-metadata">

**Author:** ![bcusick](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bcusick](https://forum.servoy.com/u/bcusick)\
**Post date:** [April 26, 2007, 7:33pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/6 "2007-04-26T19:33:49Z")

</div>

Specify the name (string) of the dialog that you gave it when you opened it - the “dialogName” property below:

```auto
application.showFormInDialog( form, [x], [y], [width], [height], [dialog_title], [resizable], [showTextToolbar], [dialogName], [modal])

```

---

<div class="post-metadata">

**Author:** ![dpearce](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@dpearce](https://forum.servoy.com/u/dpearce)\
**Post date:** [April 26, 2007, 9:10pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/7 "2007-04-26T21:10:36Z")

</div>

Sorry Bob,

its not happening for me.

Script that calls the window

```auto
globals.result='';
application.showFormInDialog(forms.delete_dialog,100,100,400,180,"Delete",false,false,"mydialog",true);

if (globals.result=='ok')
{
controller.deleteRecord()
}

```

Script that tries to close it:

```auto
globals.result='ok'
application.output(globals.result);
application.closeFormDialog("mydialog");

```

It definitely runs because it return the output OK into my debugger as webclient: ok

It works fine in the java client just not in webclient.

David

---

<div class="post-metadata">

**Author:** ![dpearce](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@dpearce](https://forum.servoy.com/u/dpearce)\
**Post date:** [April 26, 2007, 9:38pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/8 "2007-04-26T21:38:32Z")

</div>

Another problem is that the printer doesn’t seem to work on OS X anymore even in developer?

Doesnt seem to find a printer unlike 3.1.4.

Sorry.

David

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [April 27, 2007, 7:00am UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/9 "2007-04-27T07:00:19Z")

</div>

Coming back to my question ![:)]( "Smile") regarding

```auto
databaseManager.getFoundSet(server, table)

```

If it does what it sounds like, it’d be really nice if it could be enhanced by

```auto
databaseManager.getFoundSet(server, table, [query], [args])

```

That would really allow us to create foundset of whatever sort “in the dark”…

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 27, 2007, 12:58pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/10 "2007-04-27T12:58:03Z")

</div>

> dpearce:  
> Sorry Bob,
> 
> ```auto
> globals.result='';
> 
> ```

application.showFormInDialog(forms.delete\_dialog,100,100,400,180,“Delete”,false,false,“mydialog”,true);

if (globals.result==‘ok’)  
{  
controller.deleteRecord()  
}

> ```auto
> 
> David
> 
> ```

this will not work in the web client.  
You do have “modal” dialogs in the browser. But they are not modal in scripting, with that i mean that the scripts stops at the call: application.showFormXXXXX  
that will not happen in servoy 3.5 maybe we can fix that kind of stuff in 4.0  
So if you want to wait for the outcome then you have to do that in the onhide or in the button click thats on the form in dialog.  
In other words the application.showFormInDialog should be the last thing you do in a script.

It could be that the close form in dialog doesn’t work correctly at this time. But it should work fine ofcourse if you place a button in a modal dialog and when you press that button the closeFormInDialog is called the dialog must be closed. If this isn’t the case please make a case for this.

---

<div class="post-metadata">

**Author:** ![dpearce](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@dpearce](https://forum.servoy.com/u/dpearce)\
**Post date:** [April 27, 2007, 4:22pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/11 "2007-04-27T16:22:32Z")

</div>

gotcha

i think i understand. the script that shows the dialog will finish. i will need to pick up my database record to delete and then hard code that into my OK button.

Thanks again johan

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [April 28, 2007, 8:36pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/12 "2007-04-28T20:36:23Z")

</div>

When I create an event I noticed I can do so with no server expanded/selected but I can also create it per table. Both are stored.

Is this correct or will that first event be ignored (in other words is this a bug)?

---

<div class="post-metadata">

**Author:** ![agiletortoise](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@agiletortoise](https://forum.servoy.com/u/agiletortoise)\
**Post date:** [April 30, 2007, 12:44pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/13 "2007-04-30T12:44:33Z")

</div>

Ok, finally got to play with table events this morning. This is a feature I’ve eagerly anticipated. 🙂

They seem to function like I would expect. You get the record as an argument, and can return false to prevent the event from happening. You can manipulate values of the record (although I seem to be getting some sql errors in certain circumstances – i’ll let you know if I can reproduce).

So, these are “before” events. It would also be very cool if we could get “after” events. There’s a lot of cases where I want something to occur in the data model only if the event has successfully occurred. For example, creating certain default relation records “after” insert.

Also, I get the row as an argument. How do I go about testing what table that row is from? Is there a method for that? If I want to make some of my global event methods generic, I’d like to know what table I’m getting a row from.

I know this is probably a much more complex thing to ask for, but somewhere down the road it would be really cool if we could actually define callable methods _on_ the dataprovider tables.

At any rate, very cool new stuff in 3.5. I’m about to start a new solution and I’m excited about take advantage of it all!

Thanks, greg.

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [April 30, 2007, 7:23pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/14 "2007-04-30T19:23:58Z")

</div>

Validators and Converters are set on a ‘per column’ basis.  
However, this does not only set the values for the solution you set them in but it is done ‘repository wide’.

Is this how you meant this to be. I think I can agree but this makes the setting of a global method as a validator a little bit ‘dangerous’.

The same applies to setting a global variable as a lookup value.

Can you please explain this a little more…

---

<div class="post-metadata">

**Author:** ![LOGIsoft](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@LOGIsoft](https://forum.servoy.com/u/LOGIsoft)\
**Post date:** [April 30, 2007, 8:58pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/15 "2007-04-30T20:58:52Z")

</div>

I also notice that, in the CRM demo for instance, I can’t get a printpreview when clicking on the printer icon - I get a ‘java.lang.NullPointerException’ error.

Aside from that, good work boys and girls! ![:)]( "Smile")

Ben

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [May 1, 2007, 1:21pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/16 "2007-05-01T13:21:16Z")

</div>

> If it does what it sounds like, it’d be really nice if it could be enhanced by
> 
> Code:  
> databaseManager.getFoundSet(server, table, [query], [args])
> 
> That would really allow us to create foundset of whatever sort “in the dark”…

you can do this in 3.5:

var vs = databaseManager.getFoundSet(server, table).loadRecords(query, [args])

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [May 1, 2007, 5:34pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/17 "2007-05-01T17:34:43Z")

</div>

That’s very cool!! In the current beta this does not seem to work, however. Is that right or am I missing something? And: I understand right that you don’t need a form based on that table at all, right?

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [May 1, 2007, 5:34pm UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/18 "2007-05-01T17:34:43Z")

</div>

That’s very cool!! In the current beta this does not seem to work, however. Is that right or am I missing something? And: I understand right that you don’t need a form based on that table at all, right?

---

<div class="post-metadata">

**Author:** ![faheemhameed](https://avatars.discourse-cdn.com/v4/letter/f/7ea924/32.png) [@faheemhameed](https://forum.servoy.com/u/faheemhameed)\
**Post date:** [May 5, 2007, 4:57am UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/19 "2007-05-05T04:57:33Z")

</div>

Nice work. Thanks guys.

Now in the debug mode the codes past the showFormInDialog are not run until you close the formInDialog which is cool. But I could not debug any code while the formInDialog is on the top. I could not touch the method editor and other debug buttons there. Would be cool if this is fixes quickly.

Thanks

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [May 7, 2007, 9:14am UTC](https://forum.servoy.com/t/servoy-3-5-beta-3/7403/20 "2007-05-07T09:14:17Z")

</div>

Patrick: that should already work in the latest beta of 3.5

faheemhameed: i will look at this. Maybe we maybe don’t check this anymore because it is currently one of the other (so or you have a blocking dialog and can’t debug it or you have a none blocking dialog and you can debug it)

[Next page](https://forum.servoy.com/t/servoy-3-5-beta-3/7403.md?page=2)
