Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Delhi
    Posts
    40
    Answers
    1
    Vote Rating
    0
      0  

    Default 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
    623
    Answers
    67
    Vote Rating
    29
      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
      0  

    Default

    Gracias

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •