View Issue Details

IDProjectCategoryView StatusLast Update
0003522JEDI VCL00 JVCL Componentspublic2006-06-27 07:03
ReporterchensielcxAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version3.30 
Summary0003522: JvInspector's OnItemEdit CONNOT change data Value!
Descriptionin procedure TJvCustomInspectorItem.Edit source:
...
  if DisplayStr <> Self.FData.AsString then
    FData.SetAsString(DisplayStr); // modified!
Only modified FData's Value, Not FEditCtrl.Text!

then when execute procedure TJvCustomInspectorItem.DoneEdit, source is:
...
   if not CancelEdits and (not Data.IsAssigned or (DisplayValue <> EditCtrl.Text)) then
    begin
      Apply;
      InvalidateItem;
    end;
because now DisplayValue <> EditCtrl.Text then FData's Value revert to EditCtrl's value,THAT IS the BUG!!

so, I have change procedure TJvCustomInspectorItem.Edit as follow:
...
      if DisplayStr <> Self.FData.AsString then
      begin
        //FData.SetAsString(DisplayStr); // modified!
        FEditCtrl.Text := DisplayStr;
      end;
 
TagsNo tags attached.

Relationships

related to 0003391 resolvedobones edits are lost in db incpestor if not defocusing item, bug or normal behaviour? 

Activities

moore

2006-02-20 00:24

reporter   ~0008573

Is this related to the issue 0003391 unresolved bug?

obones

2006-04-05 06:50

administrator   ~0008982

Please provide the zipped sources of a sample application.

obones

2006-06-08 06:56

administrator   ~0009466

Any news? Anyone?

obones

2006-06-27 07:03

administrator   ~0009683

Well, no news for a long time, I'm assuming this is fixed in SVN.
http://homepages.borland.com/jedi/wiki/index.php?title=Repository

Issue History

Date Modified Username Field Change
2006-02-19 20:27 chensielcx New Issue
2006-02-20 00:24 moore Note Added: 0008573
2006-04-05 06:49 obones Relationship added related to 0003391
2006-04-05 06:50 obones Note Added: 0008982
2006-04-05 06:50 obones Status new => feedback
2006-06-08 06:56 obones Note Added: 0009466
2006-06-27 07:03 obones Status feedback => resolved
2006-06-27 07:03 obones Fixed in Version => Daily / SVN
2006-06-27 07:03 obones Resolution open => fixed
2006-06-27 07:03 obones Assigned To => obones
2006-06-27 07:03 obones Note Added: 0009683