Re: TClientDataset and Refresh



I forgot to mention that I'm using MSSQL2000 using stored procedures. Delphi
7.

This is the code :

begin
with Datamodule1, dataModule1.cdsNotify do
try
DisableControls;
TblNotify.Active := True;

iPos := cdsNotifyRindex.AsInteger;
Refresh; <= refresh the ClientDataset
Locate('Rindex',iPos,[]);
finally
TblNotify.Active := False;
EnableControls;
end;
end;

"Stephen K. Miyasato" <miyasat@xxxxxxxx> wrote in message
news:44f4ae61$1@xxxxxxxxxxxxxxxxxxxxxxxxx
I have a TClientDataset set to a TADODataset which is set to close (Active
= False). When I do a Refresh it does not refresh the TClientDataset.
I have to manually shut don't the application then restart it in order to
get the new updates. I have the TclientDataset set up in read-only mode.

Any resolution to the problem?

Stephen K. Miyasato



.



Relevant Pages

  • TClientDataset and Refresh
    ... I have a TClientDataset set to a TADODataset which is set to close (Active = ... When I do a Refresh it does not refresh the TClientDataset. ... I have the TclientDataset set up in read-only mode. ... Stephen K. Miyasato ...
    (borland.public.delphi.database.ado)
  • Re: Multiuser application
    ... it will work with the Table of Delphi and not the ... Query components. ... refresh you datasets if you want to "see" the newdata automatically. ... > added" so he needs to learn about messaging between programs so that if ...
    (borland.public.delphi.database.ado)
  • Re: SQL Server 2005: Cannot refresh a TADOTable
    ... > I have a TADOTable component. ... > I get an error: "Insufficient key column information ... > What in the world is that and how do I refresh an ADO table? ... > Will it go away if I upgrade to Delphi 2005? ...
    (borland.public.delphi.database.ado)
  • Re: password for borland.public.delphi.language.objectpascal now?
    ... > If your news client doesn't do so automatically, you'll have to refresh ... The release of Delphi 8 prompted the reorganization ...
    (comp.lang.pascal.delphi.misc)
  • SQL Server 2005: Cannot refresh a TADOTable
    ... I get an error: "Insufficient key column information ... What in the world is that and how do I refresh an ADO table? ... Will it go away if I upgrade to Delphi 2005? ...
    (borland.public.delphi.database.ado)