Article View: borland.public.cppbuilder.database.multi-tier
Article #454Re: Can not Refresh after ApplyUpdates in C++ Builder 5
From: vavan
Date: Wed, 31 Oct 2001 08:36
Date: Wed, 31 Oct 2001 08:36
18 lines
1568 bytes
1568 bytes
On Wed, 31 Oct 2001 14:53:06 +0800, "Bill" <bill@vip.sina.com> wrote: >When I make a Purchase Order and the Purchase Order ID created on the >Application Server. I call the ClientDataSet1->ApplyUpdates(0) and >successfully saved in the database, and I refresh the client in the >AfterApplyUpdates event but an error occured "must apply updates before >refreshing data". This happens because at the time of AfterApplyUpdates event CDS isn't reconciled and CDS's changelog isn't merged yet >How can I? You can append ClientDataSet1->Refresh() after ClientDataSet1->ApplyUpdates(0) in your code -- Vladimir Ulchenko aka vavan
Technical Details
Message-ID:
<pndvtto2s11u84eoir4ig05vun9qn7annj@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3bdf9fe7$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,afe0426bb8c24a5e X-Google-Attributes: gidfcd2b,public X-Google-ArrivalTime: 2001-10-31 00:38:40 PST From: vavan <vavan@santel.ru> Newsgroups: borland.public.cppbuilder.database.multi-tier Subject: Re: Can not Refresh after ApplyUpdates in C++ Builder 5 Date: Wed, 31 Oct 2001 11:36:41 +0300 Organization: TAIF-TELCOM Message-ID: <pndvtto2s11u84eoir4ig05vun9qn7annj@4ax.com> References: <3bdf9fe7$1_1@dnews> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 195.170.216.131 X-Trace: dnews 1004517379 195.170.216.131 (31 Oct 2001 00:36:19 -0800) Lines: 18 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews