I have a cascaded combobox on a form that works on select and save of the form, but when you pull the form back up, the display of the cascaded combo just shows the id value and not the name value. This used to work and just stopped working. I did throw in the 3.3B2 library recently and will roll back, but thought i would get this posted.
Combo 1 selects a Mill. Upon selection of the mill the Contact combobox filters contacts for that mill by Name and when the form is saved, the keyid value(hiddenName) for the Contact is saved.
This works fine and when the form is reloaded the MillName is present, but the keyid value shows in the cascaded/linked box instead of the linked name:
Code:
},{
xtype: 'combo'
,editable: false
,width:300
,fieldLabel: 'Mill'
,name: 'comboMill'
,displayField:'millName'
,valueField: 'millID'
,hiddenName: 'millID'
,triggerAction:'all'
,store: {
xtype: 'jsonstore'
,url: '?c=lookup&m=mills'
,fields: ['millID','millName']
,autoLoad:false
}
,listeners:
{select: {
fn: function(combo,record,value)
{
var conbox = Ext.getCmp('contact');
conbox.clearValue();
conbox.store.load({
params:{
millID: record.data.millID
}
});
}
}}
},{
xtype: 'combo'
,editable: false
,width:300
,id: 'contact'
,fieldLabel: 'Contact'
,name: 'comboContact'
,displayField:'conName'
,valueField: 'conID'
,hiddenName: 'conID'
,triggerAction:'all'
,mode: 'local'
,store: {
xtype: 'jsonstore'
,url: '?c=lookup&m=contacts'
,fields: ['conID','conName']
,autoLoad:false
}
}]