Mark
If you have persistent fields in your Tquery object, I suggest you add the
extra fields there before opening the CDS.
Don't call CDS.CreateDataSet, just call CDS.Open, this will open the linked
query and create the data set based on Tquery's persistent field def's.
If you have a problem with this approach try adding the TfieldDefs to your
CDS, but not both!
HTH
Martin
<...>Theres a TQuery->TProvider->TClientDataSet, and theres
also code in the
providers OnDataRequest event.
I just changed the code that was creating the TField to also
call
cds.Fields.Add(newfield) and now I get "duplicate field
'release_ref'",
first its not there, now TWO of the buggers :P
----- Original Message -----
From: Martin Ease <[EMAIL PROTECTED]>
> How are you linking the CDS to the Tquery object?
"WS SMTP relay" made the following
annotations on 01/15/01 15:35:06
------------------------------------------------------------------------------
[INFO] -- Content Manager:
[MMSSOV] This e-mail message and any attachments are confidential to Sovereign Limited
and subsidiaries and subject to legal privilege. If you have received this e-mail in
error, please advise the sender immediately and destroy the message and any
attachments. If you are not the intended recipient you are notified that any use,
distribution, amendment, copying or any action taken or omitted to be taken in
reliance of this message or attachments is prohibited.
==============================================================================
---------------------------------------------------------------------------
New Zealand Delphi Users group - Database List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz