PDA

View Full Version : Pass Data between Controller1 and Controller2



punith.mailme
18 Jun 2012, 4:44 AM
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

Fire-Dragon-DoL
18 Jun 2012, 7:17 PM
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')