HugoEsteves
25 Nov 2011, 2:59 AM
Hi,
I´m having a problem in IE, i have a application that has a mainscreen where i have a grid and a form panel and all fileds in the form panel are created dinamically in this screen everything works fine the fields are all created, the problem is that when i doubleclick any row in the grid it should open another screen and in that when i try to add a combo it gives me a error in ext but only in IE
the code where it gives the error is below on bold, the line in ext-all-debug is 43936.
constructor: function(config) {
config = config || {};
var me = this,
groupers = config.groupers || me.groupers,
groupField = config.groupField || me.groupField,
proxy,
data;
if (config.buffered || me.buffered) {
me.prefetchData = Ext.create('Ext.util.MixedCollection', false, function(record) {
return record.index;
});
me.pendingRequests = [];
me.pagesRequested = [];
me.sortOnLoad = false;
me.filterOnLoad = false;
}
me.addEvents(
'beforeprefetch',
'groupchange',
'prefetch'
);
data = config.data || me.data;
me.data = Ext.create('Ext.util.MixedCollection', false, function(record) {
return record.internalId;
});
if (data) {
me.inlineData = data;
delete config.data;
}
if (!groupers && groupField) {
groupers = [{
property : groupField,
direction: config.groupDir || me.groupDir
}];
}
delete config.groupers;
me.groupers = Ext.create('Ext.util.MixedCollection');
me.groupers.addAll(me.decodeGroupers(groupers));
this.callParent([config]);
if (me.groupers.items.length) {
me.sort(me.groupers.items, 'prepend', false);
}
proxy = me.proxy;
data = me.inlineData;
if (data) {
if (proxy instanceof Ext.data.proxy.Memory) {
proxy.data = data;
me.read();
} else {
me.add.apply(me, data);
}
me.sort();
delete me.inlineData;
} else if (me.autoLoad) {
Ext.defer(me.load, 10, me, [typeof me.autoLoad === 'object' ? me.autoLoad: undefined]);
}
}
the combo i'm trying to create is something like this:
fieldContainer = {
idFn: item.idFn,
name: item.name,
columnWidth: pColumnWidth,
labelSeparator: pLabelSep,
margin: '5 10 5 5',
xtype: item.xtype,
editable: false,
displayField: 'desc',
valueField: 'id',
store: item.values,
fieldOperator: pFieldOper,
labelWidth: 100,
allowBlank: !item.allowBlank,
readOnly: item.disabled,
queryMode: 'local',
fieldLabel: item.label,
triggerAction: 'all',
typeAhead: false
};
the item.values is an array of objects, and the erro message is: "the object doens't support this property or method", the error occurs when i try to add this combo to the container, does anyone had this problem or something similar?
I´m having a problem in IE, i have a application that has a mainscreen where i have a grid and a form panel and all fileds in the form panel are created dinamically in this screen everything works fine the fields are all created, the problem is that when i doubleclick any row in the grid it should open another screen and in that when i try to add a combo it gives me a error in ext but only in IE
the code where it gives the error is below on bold, the line in ext-all-debug is 43936.
constructor: function(config) {
config = config || {};
var me = this,
groupers = config.groupers || me.groupers,
groupField = config.groupField || me.groupField,
proxy,
data;
if (config.buffered || me.buffered) {
me.prefetchData = Ext.create('Ext.util.MixedCollection', false, function(record) {
return record.index;
});
me.pendingRequests = [];
me.pagesRequested = [];
me.sortOnLoad = false;
me.filterOnLoad = false;
}
me.addEvents(
'beforeprefetch',
'groupchange',
'prefetch'
);
data = config.data || me.data;
me.data = Ext.create('Ext.util.MixedCollection', false, function(record) {
return record.internalId;
});
if (data) {
me.inlineData = data;
delete config.data;
}
if (!groupers && groupField) {
groupers = [{
property : groupField,
direction: config.groupDir || me.groupDir
}];
}
delete config.groupers;
me.groupers = Ext.create('Ext.util.MixedCollection');
me.groupers.addAll(me.decodeGroupers(groupers));
this.callParent([config]);
if (me.groupers.items.length) {
me.sort(me.groupers.items, 'prepend', false);
}
proxy = me.proxy;
data = me.inlineData;
if (data) {
if (proxy instanceof Ext.data.proxy.Memory) {
proxy.data = data;
me.read();
} else {
me.add.apply(me, data);
}
me.sort();
delete me.inlineData;
} else if (me.autoLoad) {
Ext.defer(me.load, 10, me, [typeof me.autoLoad === 'object' ? me.autoLoad: undefined]);
}
}
the combo i'm trying to create is something like this:
fieldContainer = {
idFn: item.idFn,
name: item.name,
columnWidth: pColumnWidth,
labelSeparator: pLabelSep,
margin: '5 10 5 5',
xtype: item.xtype,
editable: false,
displayField: 'desc',
valueField: 'id',
store: item.values,
fieldOperator: pFieldOper,
labelWidth: 100,
allowBlank: !item.allowBlank,
readOnly: item.disabled,
queryMode: 'local',
fieldLabel: item.label,
triggerAction: 'all',
typeAhead: false
};
the item.values is an array of objects, and the erro message is: "the object doens't support this property or method", the error occurs when i try to add this combo to the container, does anyone had this problem or something similar?