You set valuefield : 'field_id' , but there are no fields in fields fields ,
{ xtype : 'combo', fieldLabel : 'Select Field', displayField : 'field_name', valueField : 'field_id', //This 'field_id' must be in store fields too. id : 'fields_combo_id', store: new Ext.data.JsonStore({ proxy : new Ext.data.HttpProxy({url:eyefind.config.DATA_RETRIEVAL, method:'GET'}), baseParams: { subject: 'fields' }, root: 'data', id: 'field_id', //This id is just for the store, not the record data. fields: ['field_id','field_name'], // here, i add `field_id` autoload: true // This should be autoLoad, remember JavaScript is case sensitive. }), labelStyle : 'font-weight:bold; width:100px', triggerAction : 'all', clearFilterOnReset : false, mode : 'local' }
And also, why do you set autoLoad : true if you load it again into your external function?
EDIT
When I run comboFields.setValue(id); , in which my identifier is assigned to one of the field identifiers, it works, and I see the display field in my combo (there is no need for a drop-down list first). But, if in your case your combo element was highlighted, I think this is due to the version. Unfortunately, I tested it in Ext 3.3.0.
source share