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.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi