Threaded View

[SOLVED] extjs4, combobox, multiselect, need to set VALUE for ALL returned from DB

Using EXTJS v4, I want to update the VALUE field of a multi-select combobox i have, with ALL the records returned from my remote query. In my case I want to update the multiselect 'value' field not the 'valueField' entries, and highlight the values in the list that are returned from the database query for the combo list. For the combobox, if you set up the combo to run with a config entry such as this:

As you can see when we get to the 'else' statement, there is a list of tables I can post back to the combo. But I am getting the list returned, but they are only showing in the combo text field, and the values are not highlighted when I open the combo.

If I use - theTableCombo.setValue(store.getAt(0).get('TABLENAME'));- I am able to retrieve the first record returned and highlight that record in the combo, but only the first record. I want ALL records returned to show in the combo, as highlighted entries.