View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005677||JEDI VCL||00 JVCL Components||public||2011-10-09 13:25||2013-12-13 11:30|
|Target Version||Fixed in Version|
|Summary||0005677: JvDBComboBox with List but without set of primary Datasource dont keep Value and make crash!|
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!
|Tags||No tags attached.|
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!
||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!|
||So, will you make it?|
||Please provide the zipped sources of a sample application showing this|
||No news, suspending the issue|
|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|