🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #1734

Re: Help newbie: Multi-tier client update.

#1734
From: 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 :)
Technical Details
Message-ID: <7k9kea$o313@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7jr3ld$amg19@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,56b9f7551b3a2903
X-Google-Attributes: gidfcd2b,public
From: "Jim" <jim@www.cdsf.com>
Subject: Re: Help newbie: Multi-tier client update.
Date: 1999/06/17
Message-ID: <7k9kea$o313@forums.borland.com>
X-Deja-AN: 490495252
References: <7jr3ld$amg19@forums.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Reply-To: "Jim" <jim@www.cdsf.com>
Newsgroups: borland.public.cppbuilder.database.multi-tier