Sorry Max, I disappeared over easter and missed your response....
 
Yeah, primarily I'm importing data from a comma delimited file, and it's Master/detail/detail type data (pallets of fruit with packing details/market restrictions). I want to read through the text file, do "stage one" checking for vaild values then display the data in a grid for the user to preview before applying to the database. I want to sort it so hence CDS seems the way to go.
 
This aside though I've tried doing it on a simple form with one table - Country, consisting of CountryID (Int, PK), Code (String2), Name (String30), a single dbgrid, one apply button, one CDS, one CDSprovider,  a TQuery and Datasource - what is the right combination of links/provider flags etc to make this work please?
----- Original Message -----
Sent: Thursday, April 20, 2000 10:41 PM
Subject: RE: [DUG]: TClientDataset

This is one of those unfortunate "It depends what you are trying to achieve" situations.
 
If the TQuery, TDatasetProvider and TClientDataset are all wired together then the CDS is essentially working with live data - but needs updates applying. If you are using a TDataset provider - then presumably you are using the ClientDataset to do something the TQuery won't do -  a cached updates substitute or the ability to index on a calculated field?
 
As I say - it depends.
 
Max
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of willie-Backup.co
Sent: Thursday, 20 April 2000 10:58
To: Multiple recipients of list delphi
Subject: [DUG]: TClientDataset

Hi,
 
I'm trying to come to terms with this and was wondering if anyone had some sample code (D4) of a simple single table maintenance form that uses a TClientdataset, TQuery, TDataSource, and TDatasetProvider that I could look at.
 
I'm having (extreme) difficulty working out how they all tie together, which things I should be updating i.e. should an OnNewRecord event be on the TQuery or the TClientDataSet..... etc etc
 
TIA

Reply via email to