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
0001683 [JEDI VCL] 00 JVCL Components feature always 2004-04-22 05:39 2004-04-22 23:50
Reporter anonymous View Status public  
Assigned To user72
Priority normal Resolution fixed  
Status resolved   Product Version
Summary 0001683: TjvDBTreeView remains aftef adding new node its field FMasterValue to be NULL
Description The bug is in the method Change2:
procedure TCustomJvDBTreeView.Change2(Node: TTreeNode);
begin
  FDataLink.DataSet.Locate(FMasterField, (Node as TJvDBTreeNode).FMasterValue, []);
end;

The field FMasterValue is not changed resulting exception.
Additional Information Needed correction is simple (only 2 lines of code to be added):
procedure TCustomJvDBTreeView.Change2(Node: TTreeNode);
begin
  FDataLink.DataSet.Locate(FMasterField, (Node as TJvDBTreeNode).FMasterValue, []);
  if (Node as TJvDBTreeNode).FMasterValue = Null then //added
    (Node as
      TJvDBTreeNode).SetMasterValue(FDataLink.DataSet.FieldByName(MasterField).AsVariant); //added
end;

Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0004023)
user72
2004-04-22 23:50

Updated in CVS. Thanks for the fix!

- Issue History
Date Modified Username Field Change
2004-04-22 05:39 anonymous New Issue
2004-04-22 23:50 user72 Status new => resolved
2004-04-22 23:50 user72 Resolution open => fixed
2004-04-22 23:50 user72 Assigned To => user72
2004-04-22 23:50 user72 Note Added: 0004023


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