Thanks, I tried that and firebug gives me this error.
Error: this.store is undefined
Source File: /assets/components/staffmembers/js/mgr/widgets/SuperBoxSelect.js?v=211pl
Line: 989
resetStore: function(){
this.store.clearFilter();
if(!this.removeValuesFromStore){
return this;
}
this.usedRecords.each(function(rec){
this.store.add(rec);
},this);
this.usedRecords.clear();
if(!this.store.remoteSort){
this.store.sort(this.displayField, 'ASC');
}
return this;
},
EDIT ***
I didn’t quite post the right code at first!
I missed out an action.
Staffmembers.SuperBoxSelect = function (config) {
config = config || {};
Ext.applyIf(config, {
xtype:'superboxselect'
,triggerAction: 'all'
,mode: 'local'
,extraItemCls: 'x-tag'
,width: 350
,fields: ['id','title']
,displayField: "title"
,valueField: "title"
,url: Staffmembers.config.connectorUrl
,baseParams: {
action: 'mgr/role/getlist'
}
});
Staffmembers.SuperBoxSelect.superclass.constructor.call(this, config);
};
Ext.extend(Staffmembers.SuperBoxSelect, Ext.ux.form.SuperBoxSelect);
Ext.reg('SuperBoxSelect', Staffmembers.SuperBoxSelect);
The getlist is getting details from the DB correctly.