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
0001991 [JEDI VCL] 00 JVCL Components major always 2004-07-21 07:24 2005-08-10 03:03
Reporter marcgeldon View Status public  
Assigned To obones
Priority normal Resolution fixed  
Status resolved   Product Version
Summary 0001991: JvLookupEdit - setting LookupValue to ''
Description try to set the LookupValue from a JvLookupEdit to '' (empty string). It will work, but the DisplayValue will not update. The DisplayValue (and the shown text) has the value from the selection before you changed to ''.
Additional Information I build a work-around for this. Maybe it can help:

ORIGINAL
========
procedure TJvLookupEdit.SetLookupValue(const Value: string);
begin
  TJvPopupDataWindow(FPopup).Value := Value;
  Text := TJvPopupDataWindow(FPopup).DisplayValue;
end;

WITH WORK-AROUND
================
procedure TJvLookupEdit.SetLookupValue(const Value: string);
begin
  TJvPopupDataWindow(FPopup).Value := Value;

  If (Value = EmptyStr) then
     Text := ''
  else
     Text := TJvPopupDataWindow(FPopup).DisplayValue;
end;

Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0007764)
obones (administrator)
2005-08-10 03:03

This is now in CVS.

- Issue History
Date Modified Username Field Change
2004-07-21 07:24 marcgeldon New Issue
2005-08-10 03:03 obones Status new => resolved
2005-08-10 03:03 obones Resolution open => fixed
2005-08-10 03:03 obones Assigned To => obones
2005-08-10 03:03 obones Note Added: 0007764


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