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 TAggregateField

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





PostPosted: Sun May 29, 2005 12:03 am    Post subject: usage of TAggregateField Reply with quote



Dear All,

I have some ClientDataSets

ClientDataSetA :TClientDataSet
ClientDataSetB :TClientDataSet

DataSourceA :TDataSource

DataSourceA.DataSet =:ClientDataSetA

ClientDataSetB.MasterSource:=DataSourceA
ClientDataSetB.MasterField:='FieldA'
ClientDataSetB.IndexFieldNames:='FieldA;FieldB'

I want to calculate the sum of the current FieldC of ClientDataSetB under
the relationship of ClientDataSetA
but I found that the TAggregateField must be some every record igrone the
MasterSource information
How to I do it?

I cannot use the TDataSetField, because there are so many table relate to
ClientDataSetA;
but TDataSetField can only handle 1 master dataset and 1 detail dataset
without bug
please teach me if you know

thank you

Emmanuel


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.