# Servoy 6.1

**URL:** <https://forum.servoy.com/t/servoy-6-1/16133>\
**Category:** Classic Servoy\
**Created:** [July 3, 2012, 7:51pm UTC](https://forum.servoy.com/t/servoy-6-1/16133 "2012-07-03T19:51:25Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![rossent](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@rossent](https://forum.servoy.com/u/rossent)\
**Post date:** [July 6, 2012, 2:13pm UTC](https://forum.servoy.com/t/servoy-6-1/16133/41 "2012-07-06T14:13:35Z")

</div>

> briese-it:  
> I have seen that utils.dateFormat() is really deprecated. The new method is utils.parseDate. Maybe there is something new for utils.numberFormat(), too.

The overload of utils.dateFormat to create a date from string is deprecated, but the one to format a Date as String is still available

As for parsing numbers from string, just use the standard JavaScript parseFloat and parseInt functions.

---

<div class="post-metadata">

**Author:** ![briese-it](https://avatars.discourse-cdn.com/v4/letter/b/a698b9/32.png) [@briese-it](https://forum.servoy.com/u/briese-it)\
**Post date:** [July 6, 2012, 2:54pm UTC](https://forum.servoy.com/t/servoy-6-1/16133/42 "2012-07-06T14:54:00Z")

</div>

Ok, I see ![:-)]( "Smile") By the way, the number-problem was my mistake, there was a wrong type-declaration and Servoy warns with deprecated in this case. Well, now all warnings are gone ![:-)]( "Smile") Have a nice weekend.

---

<div class="post-metadata">

**Author:** ![david](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@david](https://forum.servoy.com/u/david)\
**Post date:** [July 7, 2012, 6:23am UTC](https://forum.servoy.com/t/servoy-6-1/16133/43 "2012-07-07T06:23:20Z")

</div>

Congrats Servoy. We’ve busted our chops the past couple months getting retooled completely to web client from smart client. Our clients love the results and it is opening up a brave new world for us.

Thanks for including us in your development process through the RC period via your support system. At one point last week, the system spit out emails from six different Servoy developers as they were working on our tickets. That kind of attention was super motivation mojo that helped keep us plugging away.

Good Stuff.

[attachment=0]demo\_order.png[/attachment]

 ![demo_order.png](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/b/be2e47ab01b3fcaf5427279ded774b2491e0c0ae.png)

---

<div class="post-metadata">

**Author:** ![grahamg](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@grahamg](https://forum.servoy.com/u/grahamg)\
**Post date:** [July 7, 2012, 2:00pm UTC](https://forum.servoy.com/t/servoy-6-1/16133/44 "2012-07-07T14:00:49Z")

</div>

Brilliant job on 6.1 Servoy. As David pointed out the response to RC issues has been tremendous and I’ve been really enjoying the new CSS features.

However, wanted to create a completely fresh install to test an issue but can’t see a link. The 6.1 download link on Developer ‘Start Page’ and Download link from [Servoy.com](http://Servoy.com) both go to the CRM Download page which still refers to 6.1 beta but the OSX link is not starting a download.

---

<div class="post-metadata">

**Author:** ![grahamg](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@grahamg](https://forum.servoy.com/u/grahamg)\
**Post date:** [July 8, 2012, 11:18am UTC](https://forum.servoy.com/t/servoy-6-1/16133/45 "2012-07-08T11:18:25Z")

</div>

In 6.1 I have an issue with Fields set as ‘HTML\_AREA’ not displaying images. This is working in 6.1 rc1 with ticks/crosses being displayed correctly based on calcs below but in 6.1 Final nothing is displayed.

The calculations are very simple - maybe too simple??

```auto
function disp_decl_yn_c()	{
	if (decl_complete_yn == 'Yes')	
		{ return '<html><img src="media:///FCM_30x30_GrnTick.gif"></html>'}
	else		
		{ return '<html><img src="media:///FCM_30x30_Red_X.gif"></html>'}
}

/**
 * @properties={type:12,typeid:36,uuid:"DDD723A3-DBFE-45B1-97FF-54C6486B0905"}
 */
function disp_refs_yn_c()	{
	if (refs_complete_yn == 'Yes')	
		{ return '<html><img src="media:///FCM_30x30_GrnTick.gif"></html>'}
	else		
		{ return '<html><img src="media:///FCM_30x30_Red_X.gif"></html>'}
}

```

---

<div class="post-metadata">

**Author:** ![omar](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@omar](https://forum.servoy.com/u/omar)\
**Post date:** [July 9, 2012, 7:52am UTC](https://forum.servoy.com/t/servoy-6-1/16133/46 "2012-07-09T07:52:37Z")

</div>

Here’s the fix to get Servoy to display pixelperfect on a MBP Retina:

Locate the Servoy executable (usually Applications - Servoy - Developer)  
Right click it  
Choose _Show Package Contents_  
Open the folder _Contents_  
Edit the file _Info.plist_  
Locate the and nodes  
Above that, insert the key _NSHighResolutionCapable_ and set it to true as shown below  
Save the file  
Copy the servoy app to servoy 2 (because Info.plst is cached rather aggressively)  
Delete the original and rename Servoy 2 to Servoy  
Restart your MBP

```auto
    <key>NSHighResolutionCapable</key>
    <true/>
</dict>
</plist>

```

That’s it, enjoy!

---

<div class="post-metadata">

**Author:** ![lvostinar](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lvostinar/32/5248_2.png) [@lvostinar](https://forum.servoy.com/u/lvostinar)\
**Post date:** [July 9, 2012, 8:08am UTC](https://forum.servoy.com/t/servoy-6-1/16133/47 "2012-07-09T08:08:36Z")

</div>

> grahamg:  
> In 6.1 I have an issue with Fields set as ‘HTML\_AREA’ not displaying images. This is working in 6.1 rc1 with ticks/crosses being displayed correctly based on calcs below but in 6.1 Final nothing is displayed.
> 
> The calculations are very simple - maybe too simple??
> 
> ```auto
> function disp_decl_yn_c()	{
> 
> ```

```
if (decl_complete_yn == 'Yes')	
	{ return '<html><img src="media:///FCM_30x30_GrnTick.gif"></html>'}
else		
	{ return '<html><img src="media:///FCM_30x30_Red_X.gif"></html>'}

```

}

/\*\*

- @properties={type:12,typeid:36,uuid:“DDD723A3-DBFE-45B1-97FF-54C6486B0905”}  
\*/  
function disp\_refs\_yn\_c() {  
if (refs\_complete\_yn == ‘Yes’)   
{ return ‘ ![]()’}  
else   
{ return ‘ ![]()’}  
}

> ```auto
> 
> ```

Yes, that is a bug (regression). Please create a case for it.

---

<div class="post-metadata">

**Author:** ![grahamg](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@grahamg](https://forum.servoy.com/u/grahamg)\
**Post date:** [July 9, 2012, 8:19am UTC](https://forum.servoy.com/t/servoy-6-1/16133/48 "2012-07-09T08:19:30Z")

</div>

Thanks for quick response Laurian

SVY-2635 just created

---

<div class="post-metadata">

**Author:** ![Joas](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/joas/32/5095_2.png) [@Joas](https://forum.servoy.com/u/Joas)\
**Post date:** [July 9, 2012, 8:39am UTC](https://forum.servoy.com/t/servoy-6-1/16133/49 "2012-07-09T08:39:02Z")

</div>

> grahamg:  
> However, wanted to create a completely fresh install to test an issue but can’t see a link. The 6.1 download link on Developer ‘Start Page’ and Download link from [Servoy.com](http://Servoy.com) both go to the CRM Download page which still refers to 6.1 beta but the OSX link is not starting a download.

This has been resolved, the links are correct again.

---

<div class="post-metadata">

**Author:** ![briese-it](https://avatars.discourse-cdn.com/v4/letter/b/a698b9/32.png) [@briese-it](https://forum.servoy.com/u/briese-it)\
**Post date:** [July 9, 2012, 8:53am UTC](https://forum.servoy.com/t/servoy-6-1/16133/50 "2012-07-09T08:53:47Z")

</div>

I have a problem with media within table calculation. I have a tableview with 2 media fields from a calculation. For testing I put only one media in the calculation-function: return “media:///Info\_16x16.png”; . In Webclient it’s working but in Smartclient are no images shown and no errors in the log.

---

<div class="post-metadata">

**Author:** ![grahamg](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@grahamg](https://forum.servoy.com/u/grahamg)\
**Post date:** [July 9, 2012, 9:36am UTC](https://forum.servoy.com/t/servoy-6-1/16133/51 "2012-07-09T09:36:58Z")

</div>

Hi Briese-IT

This looks similar to the HTML\_Area bug that I reported - see [Jira](https://support.servoy.com/browse/SVY-2635)

Laurian is on the case!

---

<div class="post-metadata">

**Author:** ![lvostinar](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lvostinar/32/5248_2.png) [@lvostinar](https://forum.servoy.com/u/lvostinar)\
**Post date:** [July 9, 2012, 9:42am UTC](https://forum.servoy.com/t/servoy-6-1/16133/52 "2012-07-09T09:42:43Z")

</div>

> grahamg:  
> Hi Briese-IT
> 
> This looks similar to the HTML\_Area bug that I reported - see [Jira](https://support.servoy.com/browse/SVY-2635)
> 
> Laurian is on the case!

Doesn’t seem to be the same issue, they complain about image not showing in smart client. I tried a small example in smart client but seems to work fine.

---

<div class="post-metadata">

**Author:** ![grahamg](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@grahamg](https://forum.servoy.com/u/grahamg)\
**Post date:** [July 9, 2012, 9:50am UTC](https://forum.servoy.com/t/servoy-6-1/16133/53 "2012-07-09T09:50:08Z")

</div>

Laurian

Yes you are right - the HTML\_AREA issue is Web Client only. My solution will only be used as WebClient so hadn’t tested Desktop - but just tried and SmartClient does display the images.

---

<div class="post-metadata">

**Author:** ![briese-it](https://avatars.discourse-cdn.com/v4/letter/b/a698b9/32.png) [@briese-it](https://forum.servoy.com/u/briese-it)\
**Post date:** [July 9, 2012, 10:03am UTC](https://forum.servoy.com/t/servoy-6-1/16133/54 "2012-07-09T10:03:00Z")

</div>

That’s strange. Maybe it’s again a problem in combination with the framework…

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [July 9, 2012, 10:28am UTC](https://forum.servoy.com/t/servoy-6-1/16133/55 "2012-07-09T10:28:52Z")

</div>

Rossen,

forms.formB.controller.loadRecords(table1\_to\_table1) ends up as forms.formB.controller.loadRecords(null) with this self-relation when the form has no records.  
This loaded the form with an empty foundset in Servoy 6.  
I have fixed for next build that this will be the same in 6.1 next build.

As a workaround you can do

```auto
    forms.formB.controller.loadRecords(table1_to_table1 ?table1_to_table1 : databaseManager.getFoundSet(forms.formB.controller.getDataSource()));

```

Rob

> rossent:  
> We use self-relations (relations where no join criteria columns are specified) to share the same foundset with multiple forms at runtime.  
> For example, given a self relation table1\_to\_table1 and forms formA and formB both based on table1, we share the foundset used by formA using
> 
> ```auto
> //code executed in the context of formA
> 
> ```

```
forms.formB.controller.loadRecords(table1_to_table1);

```

> ```auto
> 
> In 6.0 this worked fine even when formA did not have any records loaded - in such cases formB was being assigned the same empty foundset as the one in formA.
> 
> In 6.1, if formA does not have any records (the foundset it empty), calling the method above results in exception **Error: java.lang.IllegalArgumentException: Cannot find function loadRecords for argument null**. Basically, when there are no records in the formA foundset, the relation **table1_to_table1** returns null instead of the same empty foundset which it did in 6.0
> 
> I am not sure if this is the designed behavior or a bug. If this is the designed behavior, how can we safely share/assign the same foundset from one form to another even when the foundset is empty? Perhaps, having a new method in the form controllers similar to: **controller.assignFoundset(someFoundset)** will be handy and will allow us to share foundsets among forms without the use of self-relations (the self-relations are still needed when using TabPanels and assigning forms at design time).
> ```

---

<div class="post-metadata">

**Author:** ![briese-it](https://avatars.discourse-cdn.com/v4/letter/b/a698b9/32.png) [@briese-it](https://forum.servoy.com/u/briese-it)\
**Post date:** [July 10, 2012, 12:04pm UTC](https://forum.servoy.com/t/servoy-6-1/16133/56 "2012-07-10T12:04:20Z")

</div>

We are using SubversionEdge (3.0.1) for our SVN Repository.  
On synchronize we can see the author and modify-date but the project explorer is not updated (old date and author) after commit/update.

---

<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:** [July 10, 2012, 12:11pm UTC](https://forum.servoy.com/t/servoy-6-1/16133/57 "2012-07-10T12:11:14Z")

</div>

Hi Michael,

Just hit the refresh button and it will show the correct info in the tree.

---

<div class="post-metadata">

**Author:** ![briese-it](https://avatars.discourse-cdn.com/v4/letter/b/a698b9/32.png) [@briese-it](https://forum.servoy.com/u/briese-it)\
**Post date:** [July 10, 2012, 12:16pm UTC](https://forum.servoy.com/t/servoy-6-1/16133/58 "2012-07-10T12:16:29Z")

</div>

That whould be nice but it has no effect. It’s refreshing but nothing changed, same after restarting Servoy. Still old author/Date.

Now I have updated to 3.1.0 and it’s updating a few authors/dates but not all. Really strange…

---

<div class="post-metadata">

**Author:** ![Andrei\_Costescu](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@Andrei\_Costescu](https://forum.servoy.com/u/Andrei_Costescu)\
**Post date:** [July 10, 2012, 2:10pm UTC](https://forum.servoy.com/t/servoy-6-1/16133/59 "2012-07-10T14:10:33Z")

</div>

> briese-it:  
> I have a problem with media within table calculation. I have a tableview with 2 media fields from a calculation. For testing I put only one media in the calculation-function: return “media:///Info\_16x16.png”; . In Webclient it’s working but in Smartclient are no images shown and no errors in the log.

What type of field do you use for that calculation? I guess it’s not a HTML area because in that case you would need proper html/img tags.  
If it’s a media field make it non-editable (media ↔ URL text dataprovider do not work with editing).

---

<div class="post-metadata">

**Author:** ![briese-it](https://avatars.discourse-cdn.com/v4/letter/b/a698b9/32.png) [@briese-it](https://forum.servoy.com/u/briese-it)\
**Post date:** [July 10, 2012, 2:25pm UTC](https://forum.servoy.com/t/servoy-6-1/16133/60 "2012-07-10T14:25:34Z")

</div>

That’s it Andrej. Many thanks. What a stupid mistake… ![:-)]( "Smile")

[Previous page](https://forum.servoy.com/t/servoy-6-1/16133.md?page=2)

[Next page](https://forum.servoy.com/t/servoy-6-1/16133.md?page=4)
