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 

Nested datasets, Aggregates and calculated fields

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Anders Balslev
Guest





PostPosted: Fri May 18, 2007 1:11 pm    Post subject: Nested datasets, Aggregates and calculated fields Reply with quote



BDS2006

MSSQL 2000

Hi all

I do have a very special problem:

I have a pair of clientdatasets which works in Master-Detail relation
(Master cds through dataset provider to a ADODataset, and Detail cds as a
nested dataset (DatasetField etc))

Works fine.

The Detail cds has some aggregate fields (Average and count)
In the Master cds, I want to have calculated fields that reflect the
aggregate field values from the Detail cds.
Apparently, the "OnCalcField" in the Master cds is fired BEFORE the detail
cds calculates the aggregate fields, and therefore, the values I get in the
calculated fields reflects the values from PREVIOUS record cursor, and not
the CURRENT, meaning that the values comes too late.

- or are there any other means to get the aggregate fields in a detail cds
as a field in the Master cds?

Best regards

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