Hybrid View

  1. #1
    Sencha User
    Join Date
    May 2010
    Location
    Belgium
    Posts
    204
    Answers
    3
    Vote Rating
    1
    marxan is on a distinguished road

      0  

    Default Answered: Problem with Global variables when using SDK tools

    Answered: Problem with Global variables when using SDK tools


    Hello,

    I have compiled my application with SDK, everything went fine during the compilation. However when I launch my app, I have now the following issue related to my global var:

    Global is not defined
    http://localhost/Tab/app-all.js

    here's the code of my app.js:

    Code:
    Ext.application({
        name: 'TAB',
     //   requires:['TAB.Global'],
        appFolder: 'app',
    	enableQuickTips:false,
        autoCreateViewport: true,
      
        controllers: ['MainBorder',  'Countries' , 'Indicator', 
        			  'ExcelOptions', 'GraphOptions', 'TrapsGraph','NidiDetailsGraph'],
    
    
        launch: function() {
        }
        
    }),
    
    
    Ext.define('Global', { 
        singleton: true, 
    
    
        awPreviousEarning: '', 
        indicator: '',
        codefc: '',
        countries: 'All EU countries',
        awEarningLevels: '',
        duration: '',
        indicatorGroup: 'TRAPS',
        codeSelected: '',
        codeListToLoad: '',
        codeListAlreadyLoaded: '',
        years: '',
        lastYear: 'off',
        axe: 'C',
        indicatorCode: 'on',
        indicatorLabel: 'off',
        countriesCode: 'on',
        countriesLabel: 'off',
        famCompoCode: 'on',
        famCompoLabel: 'off',
        codeForGraph: '',
        countryNidi: 'Belgium',
        famCompoNidi: ''  
    });

    At the end of app-all.js, it seems that it has been taken into account:

    Code:
    ,launch:function(){}}),Ext.define("Global",{singleton:true,awPreviousEarning:"",indicator:"",codefc:"",countries:"All EU countries",awEarningLevels:"",duration:"",indicatorGroup:"TRAPS",codeSelected:"",codeListToLoad:"",codeListAlreadyLoaded:"",years:"",lastYear:"off",axe:"C",indicatorCode:"on",indicatorLabel:"off",countriesCode:"on",countriesLabel:"off",famCompoCode:"on",famCompoLabel:"off",codeForGraph:"",countryNidi:"Belgium",famCompoNidi:""});
    If anyone could help because I really think that using SDK will improve the loading of my app (more than 12 seconds now to load it)

  2. I see your class has a class name of Global but in the requires you have TAB.Global, this is incorrect, should just be Global or change the class name to TAB.Global.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,798
    Answers
    3467
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I see your class has a class name of Global but in the requires you have TAB.Global, this is incorrect, should just be Global or change the class name to TAB.Global.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    May 2010
    Location
    Belgium
    Posts
    204
    Answers
    3
    Vote Rating
    1
    marxan is on a distinguished road

      0  

    Default


    Thanks! what a noobie mistake! Friday evening is not the most performing day!

Thread Participants: 1

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