View Issue Details

IDProjectCategoryView StatusLast Update
0005677JEDI VCL00 JVCL Componentspublic2013-12-13 11:30
ReporterDeveloPerchikAssigned Toobones 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionsuspended 
Product Version3.40 
Target VersionFixed in Version 
Summary0005677: JvDBComboBox with List but without set of primary Datasource dont keep Value and make crash!
DescriptionHello!

Place new JvDBComboBox. DONT set anything at primary DataSource and DataField. DONT set anything at primary Items and Values. Then setup right ListSettings:DataSource,DisplayField,KeyField to getting list from working Dataset. Create on form new TEdit. Create code on JvDBComboBox event "OnChange": TEdit.Text:=JvDBComboBox.Field.Value. Run program.
When I select any item from the JvDBComboBox list - TEdit always stay clear - OnChange event does not working! When I try to take JvDBComboBox.Field.Value forced - program are crashing!

Also I try DevExpress TcxDBLookupComboBox - without setup of primary DataSource it just don't let to select any item from the list and of course don't return any Values.

Also I try classic Delphi TDBLookupComboBox - without setup of primary DataSource it LET to select any item from the list and correctly returning KeyValue!!!

You can say - "if you don't want to setup primary DataSource - just use not DB components like JvLookupComboBox or JvComboBox". But JvComboBox does not have ability of List/Lookup and JvLookupComboBox does not exist! (And of course those components does not have very useful function ListFilter)

So only way to fix it right - add to JvDBComboBox ability (if primary DataSource does not set) to hold/keep List.KeyValue by itself like it do classic TDBLookupComboBox! (just add some internal buffer/stack/variable)

My development stops in cause of this bug, please, fix it as fast as possible!
TagsNo tags attached.

Activities

DeveloPerchik

2011-10-09 14:32

reporter   ~0019023

Also don't forget about Field.Clear - for example at classic TDBLookupComboBox when you try to Clear it without setup of primary Datasource - you will get error! Also you will get the same error when setup NullValueKey and press this key! So TDBLookupComboBox can not clear his Field.Value while primary Datasource does not set!

It's not right, Clear must normally ClearingField (Displayed and Value) always!, even if primary Datasource does not set!

Please, don't forget about it when you will fix JvDBComboBox!

DeveloPerchik

2011-10-14 10:40

reporter   ~0019026

OK, I make out with it and teach to use ClientDataSet with JvDBComboBox to compensate this situation. But its will be really nice if you will add to JvDBComboBox to hold Value from LookupList by itself!

DeveloPerchik

2011-12-08 11:04

reporter   ~0019181

So, will you make it?

obones

2012-02-22 14:56

administrator   ~0019453

Please provide the zipped sources of a sample application showing this

obones

2012-06-13 16:29

administrator   ~0019974

Any news?

obones

2013-12-13 11:30

administrator   ~0020786

No news, suspending the issue

Issue History

Date Modified Username Field Change
2011-10-09 13:25 DeveloPerchik New Issue
2011-10-09 14:32 DeveloPerchik Note Added: 0019023
2011-10-14 10:40 DeveloPerchik Note Added: 0019026
2011-12-08 11:04 DeveloPerchik Note Added: 0019181
2012-02-22 14:56 obones Note Added: 0019453
2012-02-22 14:56 obones Status new => feedback
2012-06-13 16:29 obones Note Added: 0019974
2013-12-13 11:30 obones Note Added: 0020786
2013-12-13 11:30 obones Status feedback => resolved
2013-12-13 11:30 obones Resolution open => suspended
2013-12-13 11:30 obones Assigned To => obones