9 May 2012 12:55 PM #1
How to save form values to store
I have a form panel with some text fields and a button. I want to submit my form values to the local store when user clicks on the button. I was wondering if someone can tell me steps to achieve this then that would be great.
I would appreciate any help.
Thanks in advance!
9 May 2012 2:07 PM #2
Assuming you have a reference within the form and you have access to the store...
var values = this.getValues(); store.add(values)Aaron Conran
9 May 2012 3:27 PM #3
Thanks for the response. I am getting following error: Object [object Object] has no method 'getValues'
Also I am new to sencha framework and this is my first form. I am not sure if I should use button handler or controller. If you can provide more details then that would be great.