Print Thread
Refresh Record on CDS Queries All?
#7910 11/09/05 09:13 PM
Joined: Oct 2001
Posts: 36
Glasgow
R
Member
OP Offline
Member
R
Joined: Oct 2001
Posts: 36
Glasgow
Have a bit of a strange problem, wouldn't be an issue but some users 'need' to work on thousands of records in one grid.

Have an OracleDataset, linked to a ClientDataset via a DatasetProvider. Which works fine. The problem arises when I try to refresh one record on the clientdataset (clientdataset1.refreshrecord) as while this does refresh just one record in the clientdataset it requeries all records in the OracleDataset.

This can be seen through OracleMonitor, or by putting a showmessage on the OracleDataset's AfterFetchRecord event.

Is there any way of preventing the Oracle Dataset from querying all records so we can refresh just the one?

(Delphi 6, DOA 4.0.6)

Re: Refresh Record on CDS Queries All?
#7911 11/09/05 10:05 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
No this is not possible. The ClientDataSet cannot fetch one record, it will need to refresh the entire dataset.


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.027s Queries: 14 (0.006s) Memory: 2.4974 MB (Peak: 3.0405 MB) Data Comp: Off Server Time: 2024-05-16 13:13:42 UTC
Valid HTML 5 and Valid CSS