cannot save data

Hi
I have a solution where a dialog saves a new record when running locally in developer, however the same solution does not save a record from the last tabs create dialog.

However i have imported this same solution onto a hosted system running Gentoo linux and have a saving problem with a particaular dialog.

The problem:
I have modified the sample CRM application, and in this particular problem the last tab, 1 of 2 i added, on the company forms tabs , is not saving the record being created in the dialog.

I get a small popup saying “Cannot save data”.

Any suggestions?
Thanks
Marcus

Andrei Costescu wrote:
In the first problem on this thread (the solved one) - the method’s execution was interrupted in the moment a new record was created (and added to the edited record list) because the edited record list changed while Servoy was iterating on it to save records…

I think that in your case the problem might be the same (and thus it might be solved also)… “rollbackEditedRecords” probably changes the edited record list too and thus activates the same bug => the rest of the method is not executed any more and no save takes place. So anyway if it is the same problem, strange behavior can happen, as normal execution is interrupted by force…

I am not certain of this, so you can add what you reported in the previous post as another case in the support system + a sample solution to see exactly what is going on.


Marcus Raath
Johannesburg South Africa
Servoy 3.5 & Sybase 10

Cannot save data is, in my experience, (almost) always a problem of pk’s being out of sync.

Have you tried syncing the pk’s?

There are several situation that can lead to this error message.
In order to see the cause, please attach the “servoy_log.txt” file.