View Issue Details

IDProjectCategoryView StatusLast Update
0003813JEDI VCL00 JVCL Componentspublic2006-07-17 23:54
ReporterrbraasemAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0003813: Patial Key Locate in JvDbTreeView
DescriptionThe Locate in Change2 of TJvDBTreeView is new always using a complete key instead of a partial key.

The line 1040

FDataLink.DataSet.Locate(FMasterField, TJvDBTreeNode(Node).FMasterValue, []);

Should be changed in

FDataLink.DataSet.Locate(FMasterField, TJvDBTreeNode(Node).FMasterValue, [loPartialKey]);

I would do it myself, but I seem te bee locked out of SVN. (Can you also have a look at that).
TagsNo tags attached.

Activities

ivan_ra

2006-07-14 09:10

developer   ~0009799

why do you think so?
After change node dataset must be located exactly on record with key=FMasterValue

if You have records with keys "100","10","1", and IndexFieldNames<>KeyFieldName, and select node with FMasterValue="1", your method Change2 can locate wrong record

rbraasem

2006-07-17 23:49

developer   ~0009809

You are right. I always looked at Partial key as "not using all the fields" by a compound index.

I must look for an other solution of the problem.

Issue History

Date Modified Username Field Change
2006-07-14 03:29 rbraasem New Issue
2006-07-14 09:10 ivan_ra Note Added: 0009799
2006-07-17 23:49 rbraasem Note Added: 0009809
2006-07-17 23:54 rbraasem Status new => closed