View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003973 | JEDI VCL | 00 JVCL Components | public | 2006-10-29 14:12 | 2007-06-19 02:50 |
Reporter | Arioch | Assigned To | obones | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Delphi 5 | OS | OS Version | ||
Product Version | Daily / GIT | ||||
Target Version | Fixed in Version | 3.34 | |||
Summary | 0003973: JvMemoryDataset, troubles with .RecNo | ||||
Description | 1) SetRecNo method should call *Scroll events. Look at TBDEDataSet.SetRecNo or TClientDataSet.SetRecNo Thus it is better to like like that: ~~~~~ procedure TJvMemoryData.SetRecNo(Value: Integer); begin if (Value > 0) and (Value <= FRecords.Count) then begin DoBeforeScroll; // Arioch FRecordPos := Value - 1; Resync([]); DoAfterScroll; // Arioch end; end; ~~~~~ 2. Seems like UpdateCursorPos is not to be called from GetRecNo, ro some of routines it calls is implemented wrong, i didn't got ends together yet. So it is to be done yet. | ||||
Steps To Reproduce | About item 2: Just make a DBGrid to JvMemoryDataset dataset let consists of integer field and string calcfield, that is calculated to InToStr of field1 and one more statement in OnCalcFields let be "Self.Tag := JvMemoryDataSet1.RecNo" - seems like NOP, yes ? then make a button to do JMDS1.EmptyTable; for i := 1 to 10 do JMDS1.AppendRecord([i]); After that just focus the grid and press up/down to run through records. Something very cursed is happening to record buffers !!! | ||||
Tags | No tags attached. | ||||
related to | 0003461 | closed | Bug en MemoryData when in CalcFields events field = Dataset.RecNo |
2006-10-29 16:27
|
Project1.exe (234,496 bytes) |
2006-10-29 16:28
|
MemoryDataset, GetRecNo in OnCalc.zip (1,902 bytes) |
|
This is relates to the issue 0003461 |
|
true. I vote for checking in fix .SetRecNo, and then marking the rest of the ticket - duplicate of 0003461 |
|
The change is in SVN |
Date Modified | Username | Field | Change |
---|---|---|---|
2006-10-29 14:12 | Arioch | New Issue | |
2006-10-29 16:27 | Arioch | File Added: Project1.exe | |
2006-10-29 16:28 | Arioch | File Added: MemoryDataset, GetRecNo in OnCalc.zip | |
2006-10-30 07:21 | moore | Note Added: 0010393 | |
2006-10-30 12:37 | Arioch | Relationship added | related to 0003461 |
2006-10-30 12:37 | Arioch | Note Added: 0010395 | |
2007-06-19 02:49 | obones | Status | new => resolved |
2007-06-19 02:49 | obones | Fixed in Version | => Daily / SVN |
2007-06-19 02:49 | obones | Resolution | open => fixed |
2007-06-19 02:49 | obones | Assigned To | => obones |
2007-06-19 02:49 | obones | Note Added: 0013394 |