🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
2 messages
2 total messages Started by mike Fri, 11 Jun 1999 00:00
Help newbie: Multi-tier client update.
#1726
Author: mike
Date: Fri, 11 Jun 1999 00:00
5 lines
839 bytes
I'm testing to develop a multi-tier database application program, using
RemoteDataModule, TProvider, TMIDASConnection and TClientDataSet as
described in C++ Builder 3 example, everything work fine, but my problem is
I want my other clients automatically refresh their ClientDataSets when I
add, edit, or delete any record in my computer.
Re: Help newbie: Multi-tier client update.
#1734
Author: Jim
Date: Thu, 17 Jun 1999 00:00
21 lines
1062 bytes
Try the following:

In the Client tier,all updates must be applied by calling
TClientDataSet method "ApplyUpdates()",
So,you can write event handlers for a ClientDataSet that include
AfterInsert,AfterDelete,AfterEdit etc.

void __fastcall TForm1::ClientDataSet1AfterInsert(TDataSet *DataSet)
{
  try
  {
     ClientDataSet1->ApplyUpdates(-1); /*Apply all updates*/
  }
  catch(...)
  {
    ..... Error handle.....
  }
}


Hope it works,I'm newbie too :)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads