🚀 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 Bill Wed, 31 Oct 2001 06:53
Can not Refresh after ApplyUpdates in C++ Builder 5
#453
Author: Bill
Date: Wed, 31 Oct 2001 06:53
7 lines
1168 bytes
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".

How can I?
Re: Can not Refresh after ApplyUpdates in C++ Builder 5
#454
Author: vavan
Date: Wed, 31 Oct 2001 08:36
18 lines
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
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