View Issue Details

IDProjectCategoryView StatusLast Update
0005528JEDI VCL00 JVCL Componentspublic2011-03-31 21:48
ReporterdcabaleAssigned Tojfudickar 
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in Version 
Summary0005528: [TJvCustomCsvDataSet] BeforeScroll and AfterScroll not firing in Locate procedure
DescriptionHi,
BeforeScroll and AfterScroll are not firing in Locate procedure.
Although standard CodeGear VCL should not be considered as the bible, This is what exists in TCustomClientDataSet (DBClient.pas)
Additional InformationHere is what I suggest:

1. move Locate procedure to a (private) LocateRecord procedure.
2. have a Locate procedure as follows:
function TJvCustomCsvDataSet.Locate(const KeyFields: string;
  const KeyValues: Variant; Options: TLocateOptions): Boolean;
begin
  DoBeforeScroll;
  Result := LocateRecord(KeyFields, KeyValues, Options);
  if Result then
  begin
    Resync([rmExact, rmCenter]);
    DoAfterScroll;
  end;
end;
TagsAfterScroll, BeforeScroll, locate, LocateRecord, TJvCsvDataSet

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2011-03-30 10:33 dcabale New Issue
2011-03-30 11:13 dcabale Tag Attached: TJvCsvDataSet
2011-03-30 11:13 dcabale Tag Attached: AfterScroll
2011-03-30 11:13 dcabale Tag Attached: BeforeScroll
2011-03-30 11:13 dcabale Tag Attached: locate
2011-03-30 11:13 dcabale Tag Attached: LocateRecord
2011-03-31 21:48 jfudickar Status new => resolved
2011-03-31 21:48 jfudickar Resolution open => fixed
2011-03-31 21:48 jfudickar Assigned To => jfudickar