Hi,
have you solved your problem?
My code is a bit different, but the problem is the same. I used the linked combo tutorial, the one with the local data of USA and MEXICO, and what I have done it's to use JsonStore instead of simpleStore.
I can't solve it with the help of the hints of Saki, because the lastquery:'' , it seems, stops the loading of the values in the second combo.
Here there are the data:
Here there are the combo:
Code:
comboProfiles = new Ext.form.ComboBox({
id: 'comboprofiles',
store: storeProfiles,
lazyInit:'false',
method: 'POST',
hiddenId: 'Label',
editable:false,
disabled:true,
fieldLabel:'Profile',
valueField: 'Id_Profile',
displayField:'Label',
typeAhead: true,
triggerAction: 'all',
emptyText:'Select a profile...',
selectOnFocus:true,
allowBlank:false,
blankText:'This is a mandatory field',
listeners:{select:{fn:function(combo, value) {
var comboLinkedPermissions = Ext.getCmp('combopermissions');
comboLinkedPermissions.enable();
comboLinkedPermissions.clearValue();
comboLinkedPermissions.store.filter('Id_Profiles', this.getValue());
}}
}
});
comboPermissions = new Ext.form.ComboBox({
id: 'combopermissions',
store: storePermissions,
lazyInit:'false',
method: 'POST',
hiddenId: 'Label',
editable:false,
disabled:true,
fieldLabel:'Permission',
valueField: 'Id_ProfilePermission',
displayField:'Label',
typeAhead: false,
mode: 'remote',
triggerAction: 'all',
emptyText:'Select the permissions...',
selectOnFocus:true,
allowBlank:false,
blankText:'This is a mandatory field'
});
Thanks in advance to everyone who could help us!