Page 1 of 1
DeferredPost
Posted: Fri 20 Nov 2009 16:06
by davidroura
Hi,
How do I set a TUniQuery state to a browse mode after a DeferredPost without posting the change to the DataBase again?
Thanks
Posted: Mon 23 Nov 2009 08:10
by Plash
Call the Cancel method.
Posted: Mon 23 Nov 2009 15:44
by davidroura
Hi,
If I call the Cancel method, it would unsynchronize the database with the TUniQuery because the changes that are posted to the database are canceled in the TUniQuery.
I need to keep the changes, do commit to the database and keep synchronize the TUniQuery with the DataBase. If I do Post to the TUniQuery, it does another Update to the Database; if I do Cancel, it cancels the changes to the TUniQuery and I need that the TUniQuery display the changes in the grid.
Thanks
Posted: Tue 24 Nov 2009 09:11
by Plash
There is no way to prevent another query to the database. Why do you use DeferredPost? Maybe your code can be changed to use normal Post.