PDA

View Full Version : Store record life across JS files



14 Jun 2015, 9:05 PM
Hi,
I have a view file in which i have created a window with textareafield. Now, i want to to put a handler(and make ajax call) on Enter Key. But, I want to declare the call inside the controller.

How can i access the records of the store from the controller ?
I am using Keypress handler.
Thanx in advance for help!

chamacs
15 Jun 2015, 7:58 AM
If you only have one instance of a particular store, just declare the store in the controller's stores array and use 'var store = this.getStore('myDelcaredStore')' in any of the methods of the controller.

15 Jun 2015, 9:21 PM
Thanx chamacs for your help...the issued got solved!