 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Stéphane Lecorné Guest
|
Posted: Tue Mar 02, 2004 1:49 pm Post subject: Synchronisation de deux TClientDataSet |
|
|
Hi,
I'm working on an network software with Delphi. I use on the server some
TDateSetProvider objects, and TClientDataSet objetcts on the client.
When two differents windows use datas from the same database table, I use
two TClientDataSet objects based on the same table (same provider on the
server) in order not to get bad effects, like filter conflicts. I would like
to refresh the others TClientDataSet when datas are updated on one of them.
I imagine some data structures to send messages to the TClientDataSet when
they have to refresh, but as this is a general purpose problem, I can
imagine that some existing objects permit that whithout additionnal
developpment.
After that, I'll consider to permit refreshes on a client when datas are
updated on another.
Thank you if you know a solution to my problem !
|
|
| Back to top |
|
 |
Stéphane Lecorné Guest
|
Posted: Tue Mar 02, 2004 3:58 pm Post subject: Re: Synchronisation de deux TClientDataSet |
|
|
I received the answer on another forum, and it partially answer my problem.
There is a CloneCursor method on the TClientDataSet that synchronize the two
DataSets.
But if an SQL query reads datas from a table that has been modified by a
TClientDataSet, there is not any synchronization...
Maybe someone know how to resolve this problem ?
Thank you.
Stéphane.
"Stéphane Lecorné" <slecorne_ (AT) _itronic (DOT) com> a écrit dans le message de
news:404490e3$0$29948$626a14ce (AT) news (DOT) free.fr...
| Quote: | Hi,
I'm working on an network software with Delphi. I use on the server some
TDateSetProvider objects, and TClientDataSet objetcts on the client.
When two differents windows use datas from the same database table, I use
two TClientDataSet objects based on the same table (same provider on the
server) in order not to get bad effects, like filter conflicts. I would
like
to refresh the others TClientDataSet when datas are updated on one of
them.
I imagine some data structures to send messages to the TClientDataSet when
they have to refresh, but as this is a general purpose problem, I can
imagine that some existing objects permit that whithout additionnal
developpment.
After that, I'll consider to permit refreshes on a client when datas are
updated on another.
Thank you if you know a solution to my problem !
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|