View Issue Details

IDProjectCategoryView StatusLast Update
0001577JEDI VCL00 JVCL Componentspublic2004-04-04 10:43
ReporteranonymousAssigned Touser72 
PrioritynormalSeverityblockReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001577: TJvSpinEdit tries to modify a dataset without putting it in edit mode.
DescriptionThe UpdateData method of TJvSpinEdit does not check if the dataset is in edit mode before attempting to update it. This problem fires if the spinedit is modified by way of the updown arrow buttons. I'm using JVCL 2.10 with bugfix to 0001432 applied.
Additional InformationProposed changes: call FFieldDataLink.Edit before updating the data.

procedure TJvDBSpinEdit.UpdateData(Sender: TObject);
{ UpdateData is only called after calls to both FFieldDataLink.Modified and
  FFieldDataLink.UpdateRecord. }
begin
  if not ReadOnly then
  begin
    FFieldDataLink.Edit;
    FFieldDataLink.Field.AsString := Self.Text;
  end;
end;
TagsNo tags attached.

Activities

user72

2004-04-04 10:43

  ~0003629

Thanks. Already fixed in JVCL 3

Issue History

Date Modified Username Field Change
2004-04-04 05:36 anonymous New Issue
2004-04-04 10:43 user72 Status new => resolved
2004-04-04 10:43 user72 Resolution open => fixed
2004-04-04 10:43 user72 Assigned To => user72
2004-04-04 10:43 user72 Note Added: 0003629