1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    12
    Vote Rating
    0
    sonaljain is on a distinguished road

      0  

    Default How to save form values to store

    How to save form values to store


    Hi,

    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!
    Sonal

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,168
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Assuming you have a reference within the form and you have access to the store...

    Code:
    var values = this.getValues();
    store.add(values)
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    12
    Vote Rating
    0
    sonaljain is on a distinguished road

      0  

    Default


    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.

    Thanks,
    Sonal

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."