Threaded View

  1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    111
    Vote Rating
    1
    sajan is on a distinguished road

      0  

    Default Answered: problem creating a new record and updating a new record in a store

    Answered: problem creating a new record and updating a new record in a store


    Dear All,
    I am facing one problem.
    I want to add new record to my existing store and also want to modify some records in the store. but I am not able to my code is
    Code:
    var RecToUp = Ext.getCmp("transGridId").getStore().recordType;
    									var r = new RecToUp({
    								 	T10F2: this.Trans_key,
    								    T6F2: this.NameKey,
    								     }); 
    									r.commit();
    									store.add(r);
    									store.commitChanges();
    but it is saying RecTOUp is not a constructor.
    So please help me what is wrong here
    thanks

  2. Please indent your code so that it is readable before you post it.

    You don't need to create the record yourself. You can just do something like this:

    Code:
    Ext.getCmp("transGridId").getStore().add({
        T10F2: this.Trans_key,
        T6F2: this.NameKey
    });
    It will create the record for you from the model.

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..." hd porno faketaxi