PDA

View Full Version : Removing compositeField throws field.el.dom is undefined



yucatanyeti
10 Mar 2011, 1:29 PM
I am getting the following error when a component is removed from a fieldSet inside a form.
field.el.dom is undefined field.el.dom.qtip = '';

Is there some configuration setting I am missing?


var AttributeFieldSet = new Ext.form.FieldSet({
checkboxToggle: true,
id: 'AttributeFieldSet',
title: 'Search by Attribute',
collapsed: true,
items: [
new Ext.Button({
text: 'Add Attributes',
handler: addAttributeCompositeField,
autoHeight: true,
autoWidth: true,
iconCls: 'icon-plus'
})]
});

var docs = new Ext.FormPanel({
id: 'reqBrowseForm',
autoHeight: true,
bodyBorder: true,
autoDestroy: false,
layout: 'form',
frame: true,
defaultType: 'textfield',
items: [docTypeComboBox, docName, viewComboBox, AttributeFieldSet],
buttons: [{
text: 'Search',
handler: docsSubmitForm
}, {
text: 'Clear',
handler: function () {
docs.form.reset();
docs.trackLabels = true;
//AttributeFieldSet.collapse(true);
console.log('attributeIndex:' + attributeIndex);
if (attributeIndex > 2) for (attributeIndex; attributeIndex > 2; attributeIndex--) {
console.log(attributeIndex);
AttributeFieldSet.remove(AttributeFieldSet.get(AttributeFieldSet.items.length - 1))
AttributeFieldSet.doLayout();

}
}
}
}]
});

pouniok
7 Feb 2013, 7:44 AM
Having the same issue on Ext 3.4.0.

Did you find a solution to that problem ?

Sharyu
19 Aug 2014, 6:17 AM
Even I face the same issue.

Is their any solution to this issue ?