Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003781 [JEDI VCL] 00 JVCL Components major always 2006-06-25 16:49 2006-07-29 07:58
Reporter tbolick View Status public  
Assigned To obones
Priority normal Resolution fixed  
Status resolved   Product Version 3.20
Summary 0003781: jvDBFindEdit
Description When you change the DataField more than once, you lose the Original Filter condition. The problem happens because it assigns a function to the OnFilter Event when you change the DataField, and remembers the old function. Then when you change the DataField a second time, it stores the function that it had installed as the -old- function, and installs a new function. If you then destroy the control, it reverts back to the function it installed first, not the original function (which may be nil). This can cause an access violation if the Filtered is ever turned true again for the dataset.
Additional Information Not sure what the best fix is. Maybe recognize that it is replacing a function of it's own creation and not overwriting the previoud OldFunction.

Or at least change ResetFilter to reset the FOnFilterRecord to nil. Then ResetFilter could be called before or after the record is picked/found.
Tags No tags attached.
Attached Files

- Relationships

-  Notes
obones (administrator)
2006-06-27 08:11

Please try with the latest daily: [^]

I had a look at the code, it's actually when changing the Active state that FOldFilterRecord is assigned. And from what I've read in the source, it will only be stored if it is different from AFilterRecord. Maybe I'm missing the point, but in that case I would appreciate any help, and especially the zipped sources of a sample program showing the problem.
obones (administrator)
2006-07-29 07:58

No news, I'm assuming this is fixed.

- Issue History
Date Modified Username Field Change
2006-06-25 16:49 tbolick New Issue
2006-06-27 08:11 obones Note Added: 0009693
2006-06-27 08:11 obones Status new => feedback
2006-07-29 07:58 obones Status feedback => resolved
2006-07-29 07:58 obones Fixed in Version => Daily / SVN
2006-07-29 07:58 obones Resolution open => fixed
2006-07-29 07:58 obones Assigned To => obones
2006-07-29 07:58 obones Note Added: 0009910

Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker