Thank you for reporting this bug. We will make it our priority to review this report.
combobox setValue problem with remote stores
combobox setValue problem with remote stores
I have many combo boxes that do a remote store lookup. The behavior of these combos changed in 5.1 and I think they are broken. I have no way of providing a test case since the 5.1 beta is not available in Fiddle (I am not a support subscriber so none of the latest nightly builds are available).
In my case, the combo boxes are fields on a form. The form is used to create new records in a database and edit existing records. When creating new records, the combo works as expected: the combo field is empty, the user types in some characters, a selection is made and value is saved to the database.
The problem occurs when opening the form for edit. The combo is populated with value from the database using the setValue method however NO value displays when the form is opened.
What is happening I think from looking at the setValue code is the logic is checking to see if the value passed in exists in the store and if not, the raw value remains blank (resulting in no display of the value).
In my case this doesn't work as the store is empty. It is a remote store and only gets loaded when someone types in a character in the field.
So this has to be a bug..... Put another way, if its not a bug how do I make remote store combos work using setValue()? My combos worked fine in 4.x and 5.0.1.
combobox setValue problem with remote stores
Aucun commentaire:
Enregistrer un commentaire