BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PB with CDS.refresh in D7.1

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Eric G
Guest





PostPosted: Thu Dec 02, 2004 9:12 am    Post subject: PB with CDS.refresh in D7.1 Reply with quote



Hi All

Config : D7.1 with firebird 1.5

I have the following configuration
TSQLDataSet -> TDataSetProvider -> TClientDataSet -> TDatasource

A DBGrid is linked to the Datasource and will show the data without
problems.

Example :
SQLDataSet1.CommandText = 'SELECT * FROM TABLE1 WHERE FLAG=1'

With a second TSQLDataSet a do :
SQLDataSet2.CommandText = 'UPDATE TABLE1 SET FLAG=1';
SQLDataSet2.ExecSQL(True);
SQLDataSet2.close;

And now, since update 7.1 this command doen't work (work in 7.0)
ClientDataSet1.Refresh; // The data are not refreshed in the DBGrid;
// With e second refresh
ClientDataSet1.Refresh ; // it ok !!!

Can you explain that ? it's a bug or must I change something

Thank you.
Eric Gueguiniat







Back to top
Eric G
Guest





PostPosted: Thu Dec 02, 2004 1:55 pm    Post subject: Re: PB with CDS.refresh in D7.1 Reply with quote



I have try this :
ClientDataSet1.close;
ClientDataSet1.open;
-> no refresh
ClientDataSet1.close;
ClientDataSet1.open;
-> ok

"Eric G" <eric (AT) a_menlog_a (DOT) com> a écrit dans le message de news:
41aedc69$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hi All

Config : D7.1 with firebird 1.5

I have the following configuration
TSQLDataSet -> TDataSetProvider -> TClientDataSet -> TDatasource

A DBGrid is linked to the Datasource and will show the data without
problems.

Example :
SQLDataSet1.CommandText = 'SELECT * FROM TABLE1 WHERE FLAG=1'

With a second TSQLDataSet a do :
SQLDataSet2.CommandText = 'UPDATE TABLE1 SET FLAG=1';
SQLDataSet2.ExecSQL(True);
SQLDataSet2.close;

And now, since update 7.1 this command doen't work (work in 7.0)
ClientDataSet1.Refresh; // The data are not refreshed in the DBGrid;
// With e second refresh
ClientDataSet1.Refresh ; // it ok !!!

Can you explain that ? it's a bug or must I change something

Thank you.
Eric Gueguiniat










Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.