Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Midas/TClientDataSet    [ Add a report in this area ]  
Report #:  7287   Status: Closed
incorrect cdsNestedDetail data after cdsMaster.ApplyUpdates.
Project:  Delphi Build #:  4.453
Version:    7.0 Submitted By:   Dave Rowntree
Report Type:  Basic functionality failure Date Reported:  2/13/2004 6:42:57 AM
Severity:    Serious / Highly visible problem Last Updated: 10/6/2006 6:51:21 AM
Platform:    95, 98, 2000, NT, XP Internal Tracking #:   196092
Resolution: Fixed (Resolution Comments) Resolved in Build: : 7.0.8.1
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
5.00 out of 5
Total Votes: 6
Description
After editing a nested dataset and cdsMaster.ApplyUpdates(0), if you call cdsMAster.Refresh, the nested detail records vanish.
Steps to Reproduce:
1. Download and unzip the supplied test case app from Attachments.
2. Open the test case app in D7.
3. Click Run and follow the on-screen steps.
Workarounds
In DBCLIENT.PAS:

procedure TCustomClientDataSet.CloseCursor;
begin
  ....
  SetAltRecBuffers(nil, nil, nil); <== Add this line at the end of the method.
end;
Attachment
7287.zip
Comments

None

Server Response from: CODE1