[design time]ClientDataSet.CreateDataSet error - Invalid Field Type :
(solution: restart Delphi)
-------------------------------
Can not use TDateSet.Locate to locate DateTime Field
-------------------------------
PlanNo is the linked field of cdsMaster and cdsDetail.
cdsDetailOnNewRecord(DataSet: TDataSet)
begin
cdsDetail.FindField('PlanNo').Value := cdsMaster.FindField('PlanNo').Value;
end;
once you add some record in cdsMaster, cdsDetail, you can not modify the linked field: PlanNo,
or Delphi will raise the Error: "Cascade update not enabled"
-------------------------------
Dont loop a DataSet in AfterPost,AfterDelete
-------------------------------
-- cdsMaster and cdsDetail is created by calling CreateDataSet. no provider.
the link between the two is manually setup via datasource and choose link field
if I invoke DisableControls on the cdsMaster and cdsDetail and when I scroll cdsMaster, the
cdsDetail will not step follow!!!!!!!!!!!!!!
//cdsMaster.DisableControls;
//cdsDetail.DisableControls;
try
cdsMaster.First;
while not cdsMaster.Eof do
begin
cdsDetail.First;
while not cdsDetail.Eof do
begin
.........
cdsDetail.Next;
end;
cdsMaster.Next;
end;
finally
//cdsMaster.EnableControls;
//cdsDetail.EnableControls;
end;