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

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