Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Midas/TClientDataSet    [ Add a report in this area ]  
Report #:  2011   Status: Closed
'key violation' - InternalCalc field in nested CDS/poFetchDetailsOnDemand
Project:  Delphi Build #:  6.240
Version:    6.0 Submitted By:   Dave Rowntree
Report Type:  Basic functionality failure Date Reported:  8/5/2002 8:57:53 AM
Severity:    Commonly encountered problem Last Updated: 10/6/2006 6:50:45 AM
Platform:    95, 98, 2000, NT, XP Internal Tracking #:   143339
Resolution: Fixed (Resolution Comments) Resolved in Build: : 7.0.8.1
Duplicate of:  None
Voting and Rating
Overall Rating: (3 Total Ratings)
4.00 out of 5
Total Votes: 2
Description
Use a nested CDS (has DataSetField set) with persistent fields, that has had an InternalCalc field added at design time. The master CDS is supplied by a DSP which uses poFetchDetailsOnDemand. The nested CDS has FetchOnDemand set to false.

If you open the master CDS, then call cdsMaster.FetchDetails, a 'key violation' exception will be raised by Midas.

This problem does not occur if poFetchDetailsOnDemand is not used.
Steps to Reproduce:
Download, unzip, compile and run the attached demo app. Follow the on screen steps.
Workarounds
None
Attachment
IntCalcFDOD.zip
Comments

Dave Rowntree at 5/11/2004 3:45:30 AM -
Fixed in Midas.dll and dbclient.pas

Server Response from: CODE1