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 

Re: Generate field(s) definition as Field Editor's "Add All

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Dave Rowntree
Guest





PostPosted: Fri Aug 22, 2003 4:08 pm    Post subject: Re: Generate field(s) definition as Field Editor's "Add All Reply with quote



Nelson Chui <nelson_chui (AT) yahoo (DOT) com> wrote:
Quote:
In my program, there will be changed a TDataSet's Select SQL in run-time
(incl. Fields and Base Table). Moreover, I also use a ClientDataSet
with this TDataSet for data processing. Therefore, I need to how the
changes in Select SQL statement and redefine the definition of TDataSet
and ClientDataSet for some reasons ( For example : CDS.RefreshRecord
proceesing will need to set Key Fields's ProviderFlags with pfInKey
value on TDataSet before Open CDS ).

The main place the ProviderFlags have any meaning is on the
DSP.DataSet. Setting them on a client-side CDS has no effect on
anything. You don't have to set them before opening the DSP.DataSet. A
good place to set them is in the DSP.DataSet.AfterOpen event. If you
set them when data is being requested from the DSP by CDS.Open, you
can forget about them after that. The settings are then passed to the
CDS (maintained by MIDAS on behalf of your CDS) but you don't see
them. They are then automatically passed back the the DSP as and when
needed by such methods as ApplyUpdates, RefreshRecord, etc.
Quote:
But, I don't know how to code the function as same as TDataSet's "Field
Editor" popup menu - "Add All Fields" function.

You don't have to create persistent fields if you don't want to. MIDAS
will create the fields for you, then you can set any field settings
you like (ProviderFlags, default expressions, DisplayLabel, etc) in
the AfterOpen event.

--
Dave Rowntree


Back to top
Nelson Chui
Guest





PostPosted: Thu Aug 28, 2003 7:06 am    Post subject: Re: Generate field(s) definition as Field Editor's "Add All Reply with quote



Dave,

By your suggestion, I fix my problem.

Thank you VERY MUCH for your help !!!

Regards,
Nelson.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) 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.