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 

TClientDatasets as replacement for BDE, problem with calc fi

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





PostPosted: Thu Aug 28, 2003 4:17 pm    Post subject: TClientDatasets as replacement for BDE, problem with calc fi Reply with quote



Hi,

We are in the process of swapping over TStoredProcs loaded via BDE with
TClientDatasets, no BDE.

I am pointing the DSP to the original TStoredProc to load in the data into
the CDS.

There are 3 calculated fields on the original stored proc. When I go to CDS
field editor and add all fields, these come over, from stored proc, as
fkData and not fkCalculated. Therefore OnCalcFields on the CDS never fires
because there are none of that type.

Question set 1 or 2, why does this happen? It means that I have to re-create
the calculated fields from scratch on the CDS. Is there a way round this?

Therefore, I deleted these 3 fields from the CDS and added three new
calculated fields, using the same field name as those in the original stored
proc calculated field names.

Now OnCalcFields on the CDS does fire BUT I get [Field "Total" cannot be
modified] error message when I try and set the value of the calculated field
in the CDS.

I checked CanModify on the TField and it is FALSE, although ReadOnly on the
TField is FALSE as well. I cannot call EDIT on the CDS as I get an access
violation.

Quesiton set 2 of 2: Does anyone know why I cannot change the value of the
calculated field in the OnCalcField event? Have I missed out a step or do I
need to do it in a different fashion?

Thanks very much
Ramesh




Back to top
vavan
Guest





PostPosted: Fri Aug 29, 2003 5:31 am    Post subject: Re: TClientDatasets as replacement for BDE, problem with cal Reply with quote



On Thu, 28 Aug 2003 17:17:25 +0100, "ramesh yadav"
<ramesh.yadav (AT) roomsolutions (DOT) net> wrote:

use InternalCalc field instead

--
Vladimir Ulchenko aka vavan

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.