View Issue Details

IDProjectCategoryView StatusLast Update
0002467JEDI VCL00 JVCL Componentspublic2005-08-10 04:02
Reporterrobert_marquardtAssigned Tojfudickar 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version3.10 
Summary0002467: possible bug TJvDatabaseCopyAction.CopyRecord in JvDBActions.pas
Description  if Assigned(FBeforeCopyRecord) then
    FBeforeCopyRecord(DataSet, Allowed);
  with DataSet do
  begin
    // (rom) this suppresses AfterCopyRecord. Is that desired?
    if not Allowed then
      Exit;

This code does not always throw an AfterCopyRecord event.
Is this really desired?
Either no BeforeCopyEvent or an AfterCopyEvent with a failure signal would be better.
TagsNo tags attached.

Activities

jfudickar

2005-01-04 10:56

developer   ~0006081

I'm not shure. For me it's a point of design.

Both ways are correct. I say, that the developer has to handle everything in the BeforeCopyRecord Event. If he didn't want to continue, than he had to look after this and for me there is no reason to call the AfterCopyRecord event.

And the BeforeCopy-Event mus be called, because only there i got the informations about the "allowed".

obones

2005-08-10 04:02

administrator   ~0007778

No answers, no decisions, I'm closing the issue.

Issue History

Date Modified Username Field Change
2005-01-04 09:00 robert_marquardt New Issue
2005-01-04 10:56 jfudickar Note Added: 0006081
2005-01-05 03:07 jfudickar Status new => assigned
2005-01-05 03:07 jfudickar Assigned To => jfudickar
2005-01-05 03:08 jfudickar Status assigned => feedback
2005-08-10 04:02 obones Status feedback => resolved
2005-08-10 04:02 obones Resolution open => fixed
2005-08-10 04:02 obones Note Added: 0007778