1. #11
    Sencha User
    Join Date
    May 2012
    Location
    rome
    Posts
    62
    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
    62
    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

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