BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Synchronisation de deux TClientDataSet

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Stéphane Lecorné
Guest





PostPosted: Tue Mar 02, 2004 1:49 pm    Post subject: Synchronisation de deux TClientDataSet Reply with 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
Stéphane Lecorné
Guest





PostPosted: Tue Mar 02, 2004 3:58 pm    Post subject: Re: Synchronisation de deux TClientDataSet Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.