Board index » delphi » Re: Help on client Apply Updates

Re: Help on client Apply Updates


2003-08-22 01:50:04 AM
delphi66
"kyriakos Yavrides" <XXXX@XXXXX.COM>writes:
Quote
The problem: I tried to insert a new record (the database is not
master/detail is a one table only) and by the client side I have add a button
with code
"ClientDataSet1.ApplyUpdates(0)",
after the new record the record was visible from the client data controls
next I pressed the ApplyUpdates button and waitted for the server to be
updated but nothing. Is there any more code that I have to add? and where.
Create a CDS.OnReconcileError event containing
Action := HandleReconcileError(DataSet, UpdateKind, E);
and add 'RecError' to the 'uses' clause.
You will then see DB update error messages.
 
 

Re: Help on client Apply Updates

? "Dave Rowntree" <XXXX@XXXXX.COM>?????? ??? ??????
Quote
"kyriakos Yavrides" <XXXX@XXXXX.COM>writes:
>The problem: I tried to insert a new record (the database is not
>master/detail is a one table only) and by the client side I have add a
button
>with code
>"ClientDataSet1.ApplyUpdates(0)",
>after the new record the record was visible from the client data controls
>next I pressed the ApplyUpdates button and waitted for the server to be
>updated but nothing. Is there any more code that I have to add? and
where.

Create a CDS.OnReconcileError event containing
Action := HandleReconcileError(DataSet, UpdateKind, E);

and add 'RecError' to the 'uses' clause.

You will then see DB update error messages.
--
Dave Rowntree
Thank you Dave, helpfull and I need this code.
Kyriakos