I'm struggling with what is probably a simple problem, but I just can't seem to get past it. The issue is that I have a form that contains a combobox that is loaded from a remote store, the initial display is working, the problem I am having is reloading the data back into the form.
My combobox is defined as
The store returns data defined by the record
xtype : 'combo',
fieldLabel : 'Project Sponsor',
anchor : '-10',
loadingText : 'Querying...',
minChars : 1,
forceSelection : true,
triggerAction : 'all',
displayField : 'user',
valueField : 'id',
hiddenName : 'sponsor_id',
store : this.dao.getUsersByGroup('SPONS'),
mode : 'remote'
So, this all saves properly and looks good. However, for the life of me I can not get the data to load from a record. It always displays the id in the combobox instead of the text value. The record that comes back from the server when a record is loaded is defined as;
The value I want to be updated in the form's combobox is the sponsor_id from this record.