1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    34
    Vote Rating
    0
    dakamojo is on a distinguished road

      0  

    Default Problem adding new Store to project

    Problem adding new Store to project


    I have a project that has two existing Stores. Now when I try to add a third Store, it doesn't seem to get added to the project when it is deployed. I must be missing a step. My Store is defined as such...

    Code:
    Ext.define('Honeylogue.store.RegisterAccount', {
        extend: 'Ext.data.Store',
    
    
        config: {
            clearOnPageLoad: false,
            storeId: 'RegisterAccount',
            proxy: {
                type: 'ajax',
                url: 'https://???.appspot.com/api/RegisterAccount',
                reader: {
                    type: 'json'
                }
            },
            fields: [
                {
                    name: 'accountId',
                    type: 'string'
                }
            ]
        }
    });
    When I try to access the Store with this code it returns undefined.

    Code:
    var store = Ext.StoreMgr.get("RegisterAccount");
    When I look at the code for Application, I see the store listed.

    Code:
    Ext.application({
        models: [
            'Settings',
            'Account'
        ],
        stores: [
            'AccountForDevice',
            'SettingsStore',
            'RegisterAccount'
        ],
    When I deploy the project and open in Chrome and inspect the page, the designer.js file does not include a reference to the Store.

    Code:
    Ext.application({
        models: [
            'Settings',
            'Account'
        ],
    
    
        stores: [
            'AccountForDevice',
            'SettingsStore'
        ],
    An I missing some step? The only difference between this new Store and the existing ones is the new Store has fields defined in it instead of being linked to a Model.

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,882
    Vote Rating
    101
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    What build are you running?

    The main launch file changed from designer.js to app.js at build #353.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

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

      0  

    Default


    That was the issue. The project still has a designer.html and designer.js left over. Is it safe to delete them?

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,882
    Vote Rating
    101
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Yes, they are safe to delete. We chose to leave them around in case users had done something with them etc.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 1

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