I’m working on a solution which works as expected using Servoy Developer. However, there seem to be persistence problems using web client. On one release I was noticing that my developments in developer were not showing when using client. I also consistently got “Could not load form data” errors. The first form eventually showed up, and data was displayed from the form’s table, but not from a related child table being displayed using a tab panel through a relationship on the form.
Because I couldn’t see my recent developments in client, I decided to do an experiment and release a new solution. Prior to the release, the Login form was not showing up probably due to bugs that have since been fixed but were not reflected when using web client. After the release the Login form did show up however I’m still getting a “could not load form data” error and now the method connected to a button on the login form does nothing when I click on it in web client. This button works perfectly in developer.
I initially thought the problem was due to connection issues between servoy and MySQL since data was not appearing, so I updated to the most recent MySQL drivers. However, now it seems that a form object is not performing the method it is supposed to, which signals to me that this might be a repository problem. I can supply any details and settings if it would help, but does anyone have any ideas to start a discussion going on this weird problem?
Thanks.
More informations are needed to understand what’s happening.
Which Servoy version are you using? Are you using separate development and deployment environment? Are you using the same DB for development and deployment?
Before wasting time try to update the DB sequences on you deployment server, if it’s only a keys sync issues you should be fine.
Thanks, Servoy version is 3.5.6. This system is currently in development so there is only one environment, and one database.
Updating the DB sequences on repository and mysql servers has not improved situation at all. Method on Login form is still not being run at all. Also, when I navigate to the main form through the Windows menu option, I see all the data now, but certain images are not visible unless I click on the area where they are. I don’t know if that helps.
Another discrepancy between web client and developer: A method being performed by a button on the main form has as it’s first step a check to see if related records exist by saying:
if(relationship_name)
{
do something
}
else
{
show error dialog
}
In developer, this works as expected, only showing the error dialog when a related record does not exist.
In web client, the error message always shows up, now it think there’s repository and data problems.
I don’t think it’s a repository problem otherwise you would have the same issues also in smart client. Are you using multideveloper? How do you open the webclient solution? Does a solution Flush (from Admin Pages) help?
Yes, smart client works the same as developer. But a form method not being loaded/run on a form, if that’s not the repository, then what could it be.
Also, Multi Developer is not being used.
And what exactly is a solution flush supposed to do? I’m going to export a solution before doing that, since I’ve never used that before actually.
A solution flush is not dangerous, go to the admin pages/solutions and flush your solution, all connected clients will be logged out. Then to be sure clear also your browser cache and try to reload the webclient. Since the repository is one and only one if it’s corrupted you would have the same problems on smart and web client.
So I flushed the solution, and emptied browser cache, and web client is still having the same problems.
I see what you’re saying about the repository, it’s true, the repository is not corrupt itself, but I think there is some kind of connection problem to the repository and possibly also the MySQL backend.
At this point I suggest you to file a case in the support system, I’m sorry.
Ok,
Thank you for helping me rule out a few things first.