Servoy 6.1

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.

Ok, I see :-) 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 :-) Have a nice weekend.

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]

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 both go to the CRM Download page which still refers to 6.1 beta but the OSX link is not starting a download.

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??

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>'}
}

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

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

That’s it, enjoy!

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??

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 ‘’}
    }

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

Thanks for quick response Laurian

SVY-2635 just created

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 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.

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.

Hi Briese-IT

This looks similar to the HTML_Area bug that I reported - see Jira

Laurian is on the case!

grahamg:
Hi Briese-IT

This looks similar to the HTML_Area bug that I reported - see Jira

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.

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.

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

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

    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

    //code executed in the context of formA
forms.formB.controller.loadRecords(table1_to_table1);



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).

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.

Hi Michael,

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

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…

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).

That’s it Andrej. Many thanks. What a stupid mistake… :-)