View Issue Details

IDProjectCategoryView StatusLast Update
0001683JEDI VCL00 JVCL Componentspublic2004-04-22 23:50
ReporteranonymousAssigned Touser72 
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001683: TjvDBTreeView remains aftef adding new node its field FMasterValue to be NULL
DescriptionThe 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 InformationNeeded 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;

TagsNo tags attached.

Activities

user72

2004-04-22 23:50

  ~0004023

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