Results 1 to 2 of 2

Thread: Pass Data between Controller1 and Controller2

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    64
    Answers
    2
    Vote Rating
    0
      0  

    Default Pass Data between Controller1 and Controller2

    Hi Friends,

    I have a Store which is loaded in controller1. But my controller2 can use the same data to display the view. I want to avoid loading the same store(i mean access service again from backend with ajax) again to retrieve the same data.

    So how can i access the store loaded in Controller1 and access in Controller 2.
    i am looking for something like a dispatcher.

    Thanks
    Punith

  2. #2
    Sencha User Fire-Dragon-DoL's Avatar
    Join Date
    Dec 2011
    Posts
    141
    Answers
    9
    Vote Rating
    1
      0  

    Default

    If you don't actually use the "load" method, it won't get loaded again (except for grid, because it uses paging).

    So, if your controller has into his stores: [] settings the store you are using, you can just call it with this.getStore('YourStore')

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
  •