I’ve got a problem when my sollution has a form open with data from a database. Afte opening the form, some of the data is updated in the database through another tool (not Servoy), for example a database manager tool.
How do I get Servoy so far as to refresh the data?
If I trigger a method with a loadAllRecords, still the old info is shown.
bcusick:
Currently, it’s not possible to invalidate the client’s cache of the data (Servoy Developer also uses the client code to display the data).
Yeah, I’m trying to use Servoy as a workgroup interface for some online systems. Being able to refresh client data from the MySQL tables is really important.
One of the first replies on this subject was from Bob Cusick. he said it was on the list to add the requery function (as I call it) to the method editor as well. Any idea when we can see this in a beta or final?
Why is that? If I would open a new screen in the client, the underlying database tables also have to be queried, so query-ing the database happens. Why would requery-ing the allready available data break the working over the web?
For the financial part of my application I have to know for sure that I have the latest version of the data, before I update something. So, I want to do the following:
requery
start transaction
start lock
update data
commit transaction
release lock
since the data is not only updated through Servoy clients, but also other processed, the specific foundset the user is going to updata needs to be re-evaluated. a complete flush of all data, with is now available trhough the Admin page is a bit overdone for this.
Servoy 1.2 final will have:
databaseManager.refreshRecordFromDatabase(,);
examples:
databaseManager.refreshRecordFromDatabase(foundset,2);
databaseManager.refreshRecordFromDatabase(order_to_orderdetails,1);