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 

usage of cds.providerflags if provider.poAllowCommandText

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





PostPosted: Thu Oct 16, 2003 1:41 pm    Post subject: usage of cds.providerflags if provider.poAllowCommandText Reply with quote



Hi,

in preparing for changing from BDE to dbExpress I write all my new
Applications with TClientDataSet. Very often for readonly SELECT result to
show it in TDBGrids. Thats why my DataModules increases.
So I've written a descendant from TDataSetProvider that creates a T...Query
(Class depends of the connection-type) if no DataSet is specified.
The SELECT-statement is always stored in the TClientDataSet
(provider.poAllowCommandText).
Now I've got a problem, because of a in the SELECT calculated field XYZ.
The generated update-statement contains the this field: --> error.
cdsXYZ.ProviderFlags:=[] doesn't help.
So I've extended my TDataSetProvider-Class that it copies the
cds.fields.providerflags to the fields of the internal created T...Query.

This does it.
But I think there could be a simpler solution - And thats my question!!!


Best regards
Dietmar





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.