View Issue Details

IDProjectCategoryView StatusLast Update
0001991JEDI VCL00 JVCL Componentspublic2005-08-10 03:03
ReportermarcgeldonAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version3.10 
Summary0001991: JvLookupEdit - setting LookupValue to ''
Descriptiontry 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 InformationI 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;

TagsNo tags attached.

Activities

obones

2005-08-10 03:03

administrator   ~0007764

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