View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001683 | JEDI VCL | 00 JVCL Components | public | 2004-04-22 05:39 | 2004-04-22 23:50 |
Reporter | anonymous | Assigned To | user72 | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Target Version | Fixed in 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. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2004-04-22 05:39 | anonymous | New Issue | |
2004-04-22 23:50 |
|
Status | new => resolved |
2004-04-22 23:50 |
|
Resolution | open => fixed |
2004-04-22 23:50 |
|
Assigned To | => user72 |
2004-04-22 23:50 |
|
Note Added: 0004023 |