Solution problem in Servoy 5 rc4

When I import my solution in Servoy 5 rc4 , the solution is imported
but in problems display 86 warnings ( see Imported solution image ), exit and
run Servoy Developer reduce the number of warnings to 19 ( see Exit and run Servoy Developer image ).
Other problem is when a form is shown , the form load all the records of
the table ( see Load all records of the table image ).

This solution works OK in Servoy Developer 414 and SQL Anywhere 10 and Java: 1.6.0_14-b08.

Could you inform me what I doing wrong … Thansk Armin

In Servoy 5 rc4 -------------------
Database used: Sql Anywhere 11
Java: 1.6.0_14-b08
Servoy 414

Hello Armin,

I have the same warnings in my solution.

I think that Servoy 5 / Eclipse is checking more on the programmingcode and designing within the solution. Fields or labels which are outside the bounds of the body or header are giving a warning.
You have to check the warnings and repair them. You can double-click the warning and Eclipse will open the Form or Method.

I think Servoy is checking on the placing of the fields / body because of the webclient.
I had also some errors because of methods signatures. Servoy 5/ Eclipse don’t like arguments[0], arguments[1] anymore. It will be working. You can ignore it with the Quick Fix but I think parameters needs to be coded in the methods.

You have also an error that the dataprovider doesn’t exist. Check the properties of the field if dataprovider can be found. Maybe it are testing-fields which are not deleted in the solution before.

With regards,

Sjoerd Hannema

Also check the release notes: http://wiki.servoy.com/display/Tano/New+in+Servoy+5.0, especially the two “Warning” blocks in there.

I had also some errors because of methods signatures. Servoy 5/ Eclipse don’t like arguments[0], arguments[1] anymore. It will be working. You can ignore it with the Quick Fix but I think parameters needs to be coded in the methods.

Using arguments[…] is still valid to use, but in some situations, their use might conflict with the altered arguments send into event handlers, therefor the warning is generated, so you can check it.

Paul

Armin,

Servoy 5 does have more checks than Servoy 4, this will help you find issues much quicker.

Many problem markers also deliver a quick-fix (see the problem marker context menu or hit Ctrl-1 after selecting a problem marker) that guides you to a fix.

The check with arguments[0] is added because in Servoy 5 most methods attached to events (like onAction on a button) will receive an event argument.
If your code will also call the event handler method directly with some arguments the code might break because there is an argument from the event handling and your code may not expect that.
It is not good practice to call event handlers directly, it is better to have your logic in 1 method which is called from the event handler method and other places.

Rob

Rob:

Do you saw the problem that the form loads all the records of the table ?
( Load all records of the table image )

Thanks and have a good day.

Armin

Armin,

How do you display these values?
Maybe try a small sample on this table.

Rob

Rob:

This is the problem , the form load all the records of the table in the foundset,
and the form in all the other forms of the solution if the table has more than
200 records, it load only 200 records. In this form the foundset loads all the
records of the table by default. Why ?
( Load all records of the table image )

Armin,

Create a very small sample then we can have a look.

Rob