PDA

View Full Version : JsonStore v 0.92 problem ><



Sh1n1
29 Jul 2010, 1:23 AM
The problem is simple. The following code works perfectly in 0.91 and breaks on 0.92.
I am testing on a device, using phonegap. When I start the app it breaks after the first alert ><.
I am probably making a stupid mistake, but ...


...
alert('so far no good');
var inboxStore = new Ext.data.JsonStore({

getGroupString: function(record){
return record.get('city');
},
fields: ['city', 'dueInMinutes', 'dueLocal', 'dueUtc', 'filtered', 'icon', 'id', 'imagecount', 'isReturnedToShopper', 'location', 'locid', 'name', 'progress', 'protoid', 'saved', 'spellerr', 'stat', 'state', 'versionid', 'work', 'zip']
});
alert('so far so good');
...

29 Jul 2010, 7:39 AM
saying that it "Breaks" does not help us help you.

evant
29 Jul 2010, 6:22 PM
Have a look with the Chrome debugger, it's likely throwing an error.

Sh1n1
30 Jul 2010, 12:20 AM
Ext.setup({
tabletStartupScreen: 'resources/img/tablet_startup.png',
phoneStartupScreen: 'resources/img/phone_startup.png',
icon: 'resources/img/icon.png',
glossOnIcon: false,

onReady: function() {
var loadingPanel = new Ext.Panel({
html: "TESTING ...",
id: 'loadingPanel',
layout: 'card',
cls: 'loading',
fullscreen: true
});

inboxStore = new Ext.data.JsonStore({
// store configs
autoDestroy: true,
sorters: 'city',
storeId: 'inboxStore',
getGroupString: function(record){
return record.get('city');
},
idProperty: 'id',
fields: ['city', 'dueInMinutes', 'dueLocal', 'dueUtc', 'filtered', 'icon', 'id', 'imagecount', 'isReturnedToShopper', 'location', 'locid', 'name', 'progress', 'protoid', 'saved', 'spellerr', 'stat', 'state', 'versionid', 'work', 'zip']
});

alert("*******************************************************");
}
});Started on Chrome leads to :

Uncaught TypeError: Cannot read property 'prototype' of undefined ext-touch-debug.js:11888 (file:///C:/Users/vlado/phonegap/android/NEWmobiAudit/assets/www/mobiAuditVSsencha/ext-touch-debug.js)