-
9 Oct 2011 11:35 PM #1
Sencha.io (syncstorage) => blank/white/empty page
Sencha.io (syncstorage) => blank/white/empty page
Hi everyone,
First thanks to Sencha team, Sencha is really a great stuff !
But unfortunately i'm stuck on the thing I thought would be the easiest part
I've made a small web app with Sencha Touch, I store data on local, it works just great.
But I wanted to use Sencha.io as well and couldn't make it work. (I know it's in beta and very fresh product so might be unstable but would like to hear what you think about my issue)
I've changed the type of the proxy : localstorage => syncstorage
I'm using my login as key : jujuo (I've also tried login of others members :-o of the forum without any success)
I've downloaded the sync version of Sencha : sencha-touch-1.2.0-alpha-20110920
But when I use that it gives me a white page without any errors, logs or whatever.
I don't know what to do
of course if I change back syncstorage to localstorage, it works just great.
(I'm using the last version of everything, Xcode, Lion, Phonegap, Sencha touch..)
The thing is that I'm using Phonegap as well, it might have a conflict ?
For you everything work well ?
Here you are my whole store file.Code:Ext.regStore('NotesStore', { model: 'NoteModel', sorters: [{ property: 'date', direction: 'DESC' }], proxy: { //type: 'localstorage', id: 'notes-app-store', type: 'syncstorage', key: 'jujuo' }, getGroupString: function (record) { if (record && record.data.date) { return record.get('date').toDateString(); } else { return ''; } } }); NotesApp.stores.notesStore = Ext.StoreMgr.get('NotesStore');
Thank you in advance !
Jujuo
Edit: Sorry for the update, I tried the script without phonegap, same result.
-
10 Oct 2011 3:25 AM #2
I've just used the debug script "sencha-touch-debug.js" and got finally the errors :
Any ideasCode:Uncaught TypeError: Cannot call method 'set' of undefinedExt.data.SyncProxy.Ext.extend.setModelsencha-touch-debug.js:45719 Ext.data.Proxy.Ext.extend.constructorsencha-touch-debug.js:13263 Ext.data.SyncProxy.Ext.extend.constructorsencha-touch-debug.js:45575 Ext.data.SyncStorageProxy.Ext.extend.constructorsencha-touch-debug.js:46264 Ext.data.ProxyMgr.Ext.AbstractManager.createsencha-touch-debug.js:9881 Ext.data.AbstractStore.Ext.extend.setProxysencha-touch-debug.js:10263 Ext.data.AbstractStore.Ext.extend.constructorsencha-touch-debug.js:10220 Ext.data.Store.Ext.extend.constructorsencha-touch-debug.js:11056 Ext.regStoresencha-touch-debug.js:12184 (anonymous function)NotesStore.js:1 sencha-touch-debug.js:34493Uncaught DataView requires tpl, store and itemSelector configurations to be defined. Ext.DataView.Ext.extend.initComponentsencha-touch-debug.js:34493 Ext.List.Ext.extend.initComponentsencha-touch-debug.js:35620 Ext.lib.Component.Ext.extend.constructorsencha-touch-debug.js:29799 subclasssencha-touch-debug.js:220 subclasssencha-touch-debug.js:220 subclasssencha-touch-debug.js:220 NotesApp.views.NotesListView.Ext.extend.initComponentNotesListView.js:27 Ext.lib.Component.Ext.extend.constructorsencha-touch-debug.js:29799 subclasssencha-touch-debug.js:220 subclasssencha-touch-debug.js:220 subclasssencha-touch-debug.js:220 subclasssencha-touch-debug.js:220 subclasssencha-touch-debug.js:220 subclasssencha-touch-debug.js:220 NotesApp.views.MainView.Ext.extend.initComponentMainView.js:8 Ext.lib.Component.Ext.extend.constructorsencha-touch-debug.js:29799 subclasssencha-touch-debug.js:220 subclasssencha-touch-debug.js:220 subclasssencha-touch-debug.js:220 subclasssencha-touch-debug.js:220 subclasssencha-touch-debug.js:220 subclasssencha-touch-debug.js:220 Ext.regController.indexNotesController.js:6 Ext.util.Dispatcher.Ext.extend.dispatchsencha-touch-debug.js:17643 Ext.dispatchsencha-touch-debug.js:17767 Ext.Application.mainLaunchapp.js:13 Ext.Application.launchapp.js:7 Ext.Application.Ext.extend.onBeforeLaunchsencha-touch-debug.js:18372 (anonymous function)sencha-touch-debug.js:22808

Thank you in advance !
jujuo
-
10 Oct 2011 2:09 PM #3
Contacs Demo
Contacs Demo
Where can I find the Contacs Demo source. It will be helpful to understand how to configue the sync.io.
-
11 Oct 2011 5:03 AM #4
Well my demo is not about Contacts.. So I can't really help you on that.. But if you figure out how to fix my issue, I'll be glad you come back here to tell me

Because I just gave up..
-
11 Oct 2011 5:08 PM #5
I had the same error when defining the syncstorage at the store. The error went away when defined the syncstorage at the model.
Ext.regModel('Note', {
idProperty: 'id',
fields: [
{ name: 'id', type: 'int' },
{ name: 'date', type: 'date', dateFormat: 'c' },
{ name: 'title', type: 'string' },
{ name: 'narrative', type: 'string' }
],
validations: [
{ type: 'presence', field: 'id' },
{ type: 'presence', field: 'title', message: 'Enter a title.' }
],
proxy: {
id:'notes-app-1',
type: 'syncstorage',
key: 'zzzzzzzz'
}
});
Now I see some synchronization happening but very weird. Records do not update and disappear randomly.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote