View Issue Details

IDProjectCategoryView StatusLast Update
0006224JEDI VCL00 JVCL Componentspublic2015-09-14 13:20
ReportertbdAssigned ToAHUser 
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.45 
Target VersionFixed in Version3.48 
Summary0006224: TJvCustomDBComboBox.UpdateDropDownItems additional (e.g. UseDisplayText) property
DescriptionI wanted to use TJvCustomDBComboBox.UpdateDropDownItems method but unfortunately it was not good for me in that case because this method uses LDisplayField.AsString in all cases.

I think it will be useful if I can use LDisplayField.DisplayText also depending on a new property in ListSettings (TJvDBComboBox) options.

Current code:
TJvCustomDBComboBox.UpdateDropDownItems;
...
Line 836: Items.Add(LDisplayField.AsString);
Line 837: Values.Add(LKeyField.AsString);
...

New code:
TJvCustomDBComboBox.UpdateDropDownItems;
...
if UseDisplayText then
  Items.Add(LDisplayField.DisplayText)
else
  Items.Add(LDisplayField.AsString);
...

Thanks.
TagsNo tags attached.

Activities

AHUser

2013-12-01 11:14

developer   ~0020700

Added to master branch: TJvDBComboBox.ListSettings.UseDisplayText default False

Issue History

Date Modified Username Field Change
2013-11-14 08:06 tbd New Issue
2013-12-01 11:14 AHUser Note Added: 0020700
2013-12-01 11:14 AHUser Status new => resolved
2013-12-01 11:14 AHUser Fixed in Version => Daily / SVN
2013-12-01 11:14 AHUser Resolution open => fixed
2013-12-01 11:14 AHUser Assigned To => AHUser
2015-09-14 13:20 obones Fixed in Version Daily / GIT => 3.48