samax
11 Jun 2009, 7:39 AM
Hello,
I've a problem when I try to replace a fieldset in my formpanel. I do this to replace the field contained in it.
Here is the function which do this job:
setFieldsList: function(fieldsList) {
var formFields = this.getNewFields();
if(this.findById(this.fieldset.id)) {
var oldFieldset = this.findById(this.fieldset.id);
this.remove(this.findById(this.fieldset.id));
}
oldFieldset.items = formFields;
this.fieldset = oldFieldset;
this.add(this.fieldset);
}
When I call
this.add(this.fieldset);, the following errors appears in my firebug:
cs is undefined
for(var i = 0, len = cs.length; i < len; i++){
ext-all-debug.js (ligne 16815)
this.grid is undefined
if(this.isLocked() || (index < 0...nt()) || this.isSelected(index)) return;
ext-all-debug.js (ligne 38232)
Can someone help me for this issue?
Thanks
I've a problem when I try to replace a fieldset in my formpanel. I do this to replace the field contained in it.
Here is the function which do this job:
setFieldsList: function(fieldsList) {
var formFields = this.getNewFields();
if(this.findById(this.fieldset.id)) {
var oldFieldset = this.findById(this.fieldset.id);
this.remove(this.findById(this.fieldset.id));
}
oldFieldset.items = formFields;
this.fieldset = oldFieldset;
this.add(this.fieldset);
}
When I call
this.add(this.fieldset);, the following errors appears in my firebug:
cs is undefined
for(var i = 0, len = cs.length; i < len; i++){
ext-all-debug.js (ligne 16815)
this.grid is undefined
if(this.isLocked() || (index < 0...nt()) || this.isSelected(index)) return;
ext-all-debug.js (ligne 38232)
Can someone help me for this issue?
Thanks