So the combos were the problem for me. I am posting what I had to change so anyone could know the problem and how to reuse the combos. I'd like to thank you Condor. I found a clue in one post you made in another thread. Unfortunately I cant say the same for all the users in this forum. Some clearly treat everyone which much arrogance.
So, the problem was that I was creating a new Form for the new tabs, but I was using the same combos, which I suppose were being destroyed when I closed the tab. So, this is what I did:
1) Extended the combos (Using the same store):
Code:
storeCbAccountCategory = new Ext.data.JsonStore( {
fields : [ 'id', 'name' ],
root : 'data',
url : locServlets+'ServletComboBox?combo=accountcategory',
id : 'id'
});
Ext.backslash.combos.AccountCategory = Ext.extend(Ext.form.ComboBox, {
initComponent : function(config) {
Ext.apply(this, {
name : 'fk_account_category_id',
hiddenName : 'fk_account_category_id',
valueField : 'id',
store : storeCbAccountCategory,
displayField : 'name',
forceSelection : true,
typeAhead : true,
triggerAction : 'all',
emptyText : 'Select a category...',
selectOnFocus : true,
fieldLabel : 'Category',
allowBlank : false
});
Ext.backslash.combos.AccountCategory.superclass.initComponent.apply(this,
arguments);
}
});
Then modified the form definition like this:
Code:
items: [{
xtype:'textfield',
fieldLabel: txtName,
name: 'name',
anchor:'95%',
allowBlank:false
}, new Ext.backslash.combos.AccountCategory (Correct)
, comboAccountCategory (Incorrect)