# Servoy 5.1 beta 3

**URL:** <https://forum.servoy.com/t/servoy-5-1-beta-3/11672>\
**Category:** Classic Servoy\
**Created:** [January 26, 2010, 2:27pm UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672 "2010-01-26T14:27:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [January 26, 2010, 2:27pm UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/1 "2010-01-26T14:27:10Z")

</div>

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

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](http://www.servoy.com/developer/5xx_updates/beta)  
-Disable both [eclipse.org](http://eclipse.org) update-sites for now, since there is a problem at the eclipse side!

**Client changes:**  
[fix] 251812 page counter falls off the screen when showing formINDialog  
[fix] 268573 showForm of an solutionModel cloned form doesn’t fire event methods  
[fix] 268777 recreateUI doesn’t recreate tableviews correctly  
[fix] 260006 When using the default Servoy Sort dialog, if the user selects the Cancel button, the current sort of the foundset is cleared instead of leaving it as it is.

-Splitpane issues:  
[fix] 267562 minWidth/minHeight settings required on ‘splitpane element’  
[fix] 267555 New solution model values for orientation property to make panel a splitpane  
[fix] 267574 ‘splitpane’ element needs a resizeWeight setting

**Developer changes:**  
[fix] 262459 Servoy hangs on newRecord() in developer after switchServer  
[fix] 268225 ‘Set to Default’ option in context menu on Property Editor for the ScrollBar property is not available

**Plugin changes:**  
[fix] 268186 The serialize plugin should not try to serialize functions  
[fix] 268041 MultiSelect fileupload dialog in WC does not grow, after selecting multiple files, meaning you have to scroll inside the dialog to get to the upload button

---

<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:** [January 26, 2010, 4:34pm UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/2 "2010-01-26T16:34:02Z")

</div>

there is a problem with the file plugin in b3 in serclipse (server/smart client works fine)

you can download the fix:

[http://downloads.servoy.com/downloads/b … n/file.jar](http://downloads.servoy.com/downloads/bean_plugin/file.jar)

and drop in in the application\_server/plugins dir.

---

<div class="post-metadata">

**Author:** ![Hans\_Nieuwenhuis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Hans\_Nieuwenhuis](https://forum.servoy.com/u/Hans_Nieuwenhuis)\
**Post date:** [January 26, 2010, 5:06pm UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/3 "2010-01-26T17:06:41Z")

</div>

Thanks Servoy !!

B.t.w.

In the log file there are errors concerning the 4 plugins thet where replaced :

```auto
- Error occured trying to load: F:\Program Files\servoy5_ibis\application_server\plugins\popupmenu.jar, error: error in opening zip file
2010-01-26 17:59:35,823 ERROR [main] com.servoy.j2db.util.Debug - Error occured trying to load: F:\Program Files\servoy5_ibis\application_server\plugins\batchprintjob.jar, error: error in opening zip file
2010-01-26 17:59:36,057 ERROR [main] com.servoy.j2db.util.Debug - Error occured trying to load: F:\Program Files\servoy5_ibis\application_server\plugins\menubar.jar, error: error in opening zip file
2010-01-26 17:59:36,057 ERROR [main] com.servoy.j2db.util.Debug - Error occured trying to load: F:\Program Files\servoy5_ibis\application_server\plugins\kioskmode.jar, error: error in opening zip file

```

Regards,

---

<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:** [January 26, 2010, 5:07pm UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/4 "2010-01-26T17:07:44Z")

</div>

i guess if you look into the plugin dir you will see those files as 0 byte files?

Just remove them completely.

---

<div class="post-metadata">

**Author:** ![Hans\_Nieuwenhuis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Hans\_Nieuwenhuis](https://forum.servoy.com/u/Hans_Nieuwenhuis)\
**Post date:** [January 26, 2010, 5:32pm UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/5 "2010-01-26T17:32:21Z")

</div>

You where right Johan,

They where 0 bytes, I removed them and the log entries are gone.

Thanks !!

---

<div class="post-metadata">

**Author:** ![martinh](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@martinh](https://forum.servoy.com/u/martinh)\
**Post date:** [January 27, 2010, 11:38am UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/6 "2010-01-27T11:38:07Z")

</div>

Is the 5.1 release the next public release or will there be also a 5.0.2 release?

---

<div class="post-metadata">

**Author:** ![lwjwillemsen](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lwjwillemsen/32/4987_2.png) [@lwjwillemsen](https://forum.servoy.com/u/lwjwillemsen)\
**Post date:** [January 27, 2010, 12:46pm UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/7 "2010-01-27T12:46:21Z")

</div>

Hello ,

In b3 the saving of the global method info in the valuelist-editor seems to be broken…

Can you confirm this ?

---

<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:** [January 27, 2010, 12:54pm UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/8 "2010-01-27T12:54:12Z")

</div>

> lwjwillemsen:  
> Hello ,
> 
> In b3 the saving of the global method info in the valuelist-editor seems to be broken…
> 
> Can you confirm this ?

yes in certain situations it behaves strange, i encountered this before, but couldnt reproduce it anymore,  
Now i seem to found a situation that the name of the global method will disappear at the moment you save it.

---

<div class="post-metadata">

**Author:** ![lwjwillemsen](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lwjwillemsen/32/4987_2.png) [@lwjwillemsen](https://forum.servoy.com/u/lwjwillemsen)\
**Post date:** [January 27, 2010, 1:06pm UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/9 "2010-01-27T13:06:50Z")

</div>

> jcompagner:
> 
> > lwjwillemsen:  
> > Hello ,
> > 
> > In b3 the saving of the global method info in the valuelist-editor seems to be broken…
> > 
> > Can you confirm this ?
> 
> yes in certain situations it behaves strange, i encountered this before, but couldnt reproduce it anymore,  
> Now i seem to found a situation that the name of the global method will disappear at the moment you save it.

Hi Johan,

Sounds scary , but I think you will find a solution (as always)…

---

<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:** [January 27, 2010, 1:52pm UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/10 "2010-01-27T13:52:42Z")

</div>

> jcompagner:
> 
> > lwjwillemsen:  
> > Hello ,
> > 
> > In b3 the saving of the global method info in the valuelist-editor seems to be broken…
> > 
> > Can you confirm this ?
> 
> yes in certain situations it behaves strange, i encountered this before, but couldnt reproduce it anymore,  
> Now i seem to found a situation that the name of the global method will disappear at the moment you save it.

found the problem and fixed it for the next build

---

<div class="post-metadata">

**Author:** ![lwjwillemsen](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lwjwillemsen/32/4987_2.png) [@lwjwillemsen](https://forum.servoy.com/u/lwjwillemsen)\
**Post date:** [January 27, 2010, 2:59pm UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/11 "2010-01-27T14:59:27Z")

</div>

> jcompagner:
> 
> > jcompagner:
> > 
> > > lwjwillemsen:  
> > > Hello ,
> > > 
> > > In b3 the saving of the global method info in the valuelist-editor seems to be broken…
> > > 
> > > Can you confirm this ?
> > 
> > yes in certain situations it behaves strange, i encountered this before, but couldnt reproduce it anymore,  
> > Now i seem to found a situation that the name of the global method will disappear at the moment you save it.
> 
> found the problem and fixed it for the next build

Thanks, Johan !

For now I use the good old text editor on the .val files…

---

<div class="post-metadata">

**Author:** ![lwjwillemsen](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lwjwillemsen/32/4987_2.png) [@lwjwillemsen](https://forum.servoy.com/u/lwjwillemsen)\
**Post date:** [January 29, 2010, 7:38am UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/12 "2010-01-29T07:38:57Z")

</div>

Hi ,

I’ve noticed that the foundsetUpdater.performUpdate() starts the updating at the selectedIndex of the involved foundset !  
Is this by design or belongs it to the same selectedIndex issues I saw in the past days…

For now I issue setSelectedIndex(1) before the performUpdate() and all records in the foundset are nicely updated…

Regards,

---

<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:** [January 29, 2010, 9:16am UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/13 "2010-01-29T09:16:10Z")

</div>

> lwjwillemsen:  
> Hi ,
> 
> I’ve noticed that the foundsetUpdater.performUpdate() starts the updating at the selectedIndex of the involved foundset !  
> Is this by design or belongs it to the same selectedIndex issues I saw in the past days…
> 
> For now I issue setSelectedIndex(1) before the performUpdate() and all records in the foundset are nicely updated…
> 
> Regards,

thats by design, it does that already for quite some time.

---

<div class="post-metadata">

**Author:** ![lwjwillemsen](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lwjwillemsen/32/4987_2.png) [@lwjwillemsen](https://forum.servoy.com/u/lwjwillemsen)\
**Post date:** [January 29, 2010, 9:54am UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/14 "2010-01-29T09:54:41Z")

</div>

> jcompagner:
> 
> > lwjwillemsen:  
> > Hi ,
> > 
> > I’ve noticed that the foundsetUpdater.performUpdate() starts the updating at the selectedIndex of the involved foundset !  
> > Is this by design or belongs it to the same selectedIndex issues I saw in the past days…
> > 
> > For now I issue setSelectedIndex(1) before the performUpdate() and all records in the foundset are nicely updated…
> > 
> > Regards,
> 
> thats by design, it does that already for quite some time.

Hello Johan,

As this not to expect behaviour (updating starts at selectedIndex) is not stated in the Servoy documentation I rate it as a bug… ![:(]( "Sad")

Mail it to Paul for a Wiki update ?

Regards

---

<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:** [January 29, 2010, 10:07am UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/15 "2010-01-29T10:07:26Z")

</div>

the sample of update method does tell you that already:

//3) safely loop through foundset (starts with selected row)  
controller.setSelectedIndex(1)  
var count = 0  
var fsUpdater = databaseManager.getFoundSetUpdater(foundset)  
while(fsUpdater.next())  
{  
fsUpdater.setColumn(‘my\_flag’,count++)  
}

will see if i can improve the doc itself a bit.

---

<div class="post-metadata">

**Author:** ![lwjwillemsen](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lwjwillemsen/32/4987_2.png) [@lwjwillemsen](https://forum.servoy.com/u/lwjwillemsen)\
**Post date:** [January 29, 2010, 10:23am UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/16 "2010-01-29T10:23:25Z")

</div>

> jcompagner:  
> the sample of update method does tell you that already:
> 
> //3) safely loop through foundset (starts with selected row)  
> controller.setSelectedIndex(1)  
> var count = 0  
> var fsUpdater = databaseManager.getFoundSetUpdater(foundset)  
> while(fsUpdater.next())  
> {  
> fsUpdater.setColumn(‘my\_flag’,count++)  
> }
> 
> will see if i can improve the doc itself a bit.

Johan,

From the Servoy Wiki :

//There are **3** types of possible use with the foundset updater  
//1) update entire foundset  
var fsUpdater = databaseManager.getFoundSetUpdater(foundset)  
fsUpdater.setColumn(‘customer\_type’,1)  
fsUpdater.setColumn(‘my\_flag’,0)  
fsUpdater.performUpdate()

I am using (the very nice) option 1 in the hope that Servoy translates that into 1 SQL update statement…  
You can see here is no need to set the selectedIndex !

---

<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:** [January 29, 2010, 10:36am UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/17 "2010-01-29T10:36:40Z")

</div>

that first one doesnt use the selected index.  
Because that just generate 1 sql statement that updates the whole foundset at once.  
Are you sure that you use it like that? What does the performance tab tell you when you clear it, then run it?  
What kind of sql statements are fired?

---

<div class="post-metadata">

**Author:** ![lwjwillemsen](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lwjwillemsen/32/4987_2.png) [@lwjwillemsen](https://forum.servoy.com/u/lwjwillemsen)\
**Post date:** [January 29, 2010, 1:06pm UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/18 "2010-01-29T13:06:25Z")

</div>

> jcompagner:  
> that first one doesnt use the selected index.  
> Because that just generate 1 sql statement that updates the whole foundset at once.  
> Are you sure that you use it like that? What does the performance tab tell you when you clear it, then run it?  
> What kind of sql statements are fired?

Hi Johan,

My code :  
var \_fs = \_fs0.duplicateFoundSet() // \_fs0 is initial foundset  
// \_fs.setSelectedIndex(1)  
var \_fsu = databaseManager.getFoundSetUpdater(\_fs)  
\_fsu.setColumn(\_field, \_value)  
var \_ok =\_fsu.performUpdate()  
if (\_ok) {  
databaseManager.saveData()  
}

In performance tab appl.server :  
00:00:016 **4** 00:00:002 Update update glb\_supplier set log\_modification\_dt=?, glb\_currency\_id=? where glb\_supplier\_id = ? and owner\_id in (?, ?)

So Servoy goes into foundset iterating mode in stead of 1 update statement for the whole foundset. In my test I have 6 records in the foundset and the selectedIndex is 2 (6-2= **4** updatestatements)

I think the complete foundset updater does not work as described…

---

<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:** [January 29, 2010, 3:22pm UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/19 "2010-01-29T15:22:39Z")

</div>

the value you put in is just a string or number right? (not an array with values)

also the foundset isnt build on a table that has tracking enabled?

---

<div class="post-metadata">

**Author:** ![lwjwillemsen](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lwjwillemsen/32/4987_2.png) [@lwjwillemsen](https://forum.servoy.com/u/lwjwillemsen)\
**Post date:** [January 29, 2010, 3:55pm UTC](https://forum.servoy.com/t/servoy-5-1-beta-3/11672/20 "2010-01-29T15:55:35Z")

</div>

> jcompagner:  
> the value you put in is just a string or number right? (not an array with values)
> 
> also the foundset isnt build on a table that has tracking enabled?

Johan,

1. Value is (just) an integer value.
2. Tracking is enabled on this foundset.

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