1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    3
    Answers
    1
    Vote Rating
    0
    kazmiekr is on a distinguished road

      0  

    Default Answered: Production/Testing Build Issues with DataStore

    Answered: Production/Testing Build Issues with DataStore


    Hi Everyone,

    I have a Ext.data.Store that loads a local json file and it works fine when I'm debugging, but when I create a testing or production build using the beta3 tools with the sencha command, my store appears to be misconfigured.

    When I debug through the issue, it seems that the Store proxy is missing information that it needs like the URL to load correctly. The actual error I get is:
    TypeError: 'undefined' is not a function (evaluating 'me.getTotal(data)') which comes from the Ext.data.reader.Reader definition.

    Here is my code:

    Code:
    Ext.define('Beeropedia.store.StyleStore', {
        extend:'Ext.data.Store',
        model:'Beeropedia.model.StyleModel',
        sorters: 'NAME',
        grouper:{
            groupFn: function(record){
                return record.get('CATEGORY');
            }
        },
        proxy:{
            type:'ajax',
            url:'data/style.json',
            reader:{
                type:'json',
                root:'STYLE'
            }
        }
    });
    Thanks!

  2. I figured out the issue. My Store and Model didn't have it's config properties inside of a config:{} block. I'm not sure why this worked in debug mode and was only exposed with the command line build tool to production or testing.

    Well anyways, that solves the issue, and I'm back in business.

  3. #2
    Sencha User
    Join Date
    Mar 2012
    Posts
    3
    Answers
    1
    Vote Rating
    0
    kazmiekr is on a distinguished road

      0  

    Default Figured it out

    Figured it out


    I figured out the issue. My Store and Model didn't have it's config properties inside of a config:{} block. I'm not sure why this worked in debug mode and was only exposed with the command line build tool to production or testing.

    Well anyways, that solves the issue, and I'm back in business.

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