Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    14
    Vote Rating
    0
    jujuo is on a distinguished road

      0  

    Question 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 ?

    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');
    Here you are my whole store file.

    Thank you in advance !
    Jujuo

    Edit: Sorry for the update, I tried the script without phonegap, same result.

  2. #2
    Sencha User
    Join Date
    Jun 2011
    Posts
    14
    Vote Rating
    0
    jujuo is on a distinguished road

      0  

    Question


    I've just used the debug script "sencha-touch-debug.js" and got finally the errors :

    Code:
    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
    Any ideas
    Thank you in advance !
    jujuo

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    5
    Vote Rating
    0
    carlostg is on a distinguished road

      0  

    Default Contacs Demo

    Contacs Demo


    Where can I find the Contacs Demo source. It will be helpful to understand how to configue the sync.io.

  4. #4
    Sencha User
    Join Date
    Jun 2011
    Posts
    14
    Vote Rating
    0
    jujuo is on a distinguished road

      0  

    Default


    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..

  5. #5
    Sencha User
    Join Date
    Oct 2011
    Posts
    5
    Vote Rating
    0
    carlostg is on a distinguished road

      0  

    Default


    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.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar