1. #11
    Sencha User
    Join Date
    May 2012
    Location
    rome
    Posts
    68
    Answers
    3
    Vote Rating
    0
    alexdran is on a distinguished road

      0  

    Default


    thank you again very much... just to complete
    is the following code the consequent only solution or there is a more elegant way to address it?

    Code:
            refs: {
                info1: '#infoview1',
                info2: '#infoview2'
            },
            control: {
                'info1': {
                    activate: 'fillData'
                },
                'info2': {
                    activate: 'fillData2'
                }
            }
    ...

    Code:
        fillData2: function() {
            this.fillData(2);
        },
    
    
        fillData: function(level) {
            var store = Ext.getStore('infostore');
            switch (level) {
                case 1:
                default:
                    var panel = this.getInfo1();
                    break;
                case 2:
                    var panel = this.getInfo2();
                    break;
            }
    
            store.load({
    ....
    Alessandro

  2. #12
    Sencha User
    Join Date
    Apr 2010
    Location
    China
    Posts
    227
    Answers
    64
    Vote Rating
    20
    haduki will become famous soon enough haduki will become famous soon enough

      0  

    Default


    Have you logged what is 'level' when 'info1' activate?
    Code:
    control: {
                'info1': {
                    activate: 'fillData'
                },
                'info2': {
                    activate: 'fillData'
                }
            }
    ...
    
    fillData: function(level) {
            var store = Ext.getStore('infostore');
            console.log(level);
            console.log(level==this.getInfo1());
            console.log(level==this.getInfo2());
            var panel=level;
    
            store.load({
    ....
    I write English by translator.

  3. #13
    Sencha User
    Join Date
    May 2012
    Location
    rome
    Posts
    68
    Answers
    3
    Vote Rating
    0
    alexdran is on a distinguished road

      0  

    Default


    working good!! thanks again

    alex

Thread Participants: 1

Tags for this Thread

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