 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Emmanuel Guest
|
Posted: Sun May 29, 2005 12:03 am Post subject: usage of TAggregateField |
|
|
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 |
|
 |
|
|
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
|
|