1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Delhi
    Posts
    40
    Vote Rating
    0
    Answers
    1
    himanshu19890 is on a distinguished road

      0  

    Default Answered: How to pass data between two controllers in sencha touch 2.0?

    Answered: How to pass data between two controllers in sencha touch 2.0?


    I am working on sencha touch 2.0 MVC app,i have two controllers in my app.I want to send data from one controller to another.I used push() method to send data but i guess,it's not correct way to do it.So please help me to solve it.Any help would be highly appreciated.Thanx in advance.

  2. Inside controller C1:

    method:function(){
    var c2 = this.getApplication().getController('C2');
    c2.passSomeData( data );
    }

  3. #2
    Sencha User bluehipy's Avatar
    Join Date
    Mar 2010
    Location
    Romania
    Posts
    612
    Vote Rating
    26
    Answers
    67
    bluehipy will become famous soon enough bluehipy will become famous soon enough

      0  

    Default


    Inside controller C1:

    method:function(){
    var c2 = this.getApplication().getController('C2');
    c2.passSomeData( data );
    }

  4. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    2
    Vote Rating
    0
    spalacios is on a distinguished road

      0  

    Default


    Gracias

Thread Participants: 2

Tags for this Thread