PDA

View Full Version : Beta 1.1: Some problems with load data



daviscabral
5 Jun 2007, 6:28 AM
Hi,

Yesterday I updated my codes to 1.1 and have experienced some strange events.
Some requisitions (combobox load event) doesn't work right more.

And sometimes I have this error:


fn has no properties
[Break on this error] Ext.util.MixedCollection=function(_1,_2){this.items=[];this.map={};this.keys=[];...

Some requisitions at firebug stop with "Loading...", but If I do a manual request, the JSON String returns fine.

[code]Formulario: function(bloco) {
Ext.QuickTips.init();
Ext.form.Field.prototype.msgTarget = 'side';

var form = new Ext.form.Form({
labelAlign: 'left',
labelWidth: 120,
url: T5.url+'Representantes/Salvar.ashx'
});

var dsPais = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({url: T5.url+"Paises/Index.ashx"}),
reader: new Ext.data.JsonReader({root: 'Results',totalProperty: 'totalItems'}, [
{name: 'Id', mapping: 'Id'},
{name: 'Nome', mapping: 'Nome'}
])
});

dsPais.load({params: {sort:"Nome",start:0,limit:9999,dir:"ASC"}});

var cbPais = new Ext.form.ComboBox({
fieldLabel: 'Pa

AlxH
5 Jun 2007, 9:39 AM
look here:
http://extjs.com/forum/showthread.php?t=7072&page=2

daviscabral
5 Jun 2007, 9:53 AM
Wow! Thanks man!