| View previous topic :: View next topic |
| Author |
Message |
Eric G Guest
|
Posted: Thu Dec 02, 2004 9:12 am Post subject: PB with CDS.refresh in D7.1 |
|
|
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
|
Posted: Thu Dec 02, 2004 1:55 pm Post subject: Re: PB with CDS.refresh in D7.1 |
|
|
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 |
|
 |
|