1. #1
    Ext JS Premium Member
    Join Date
    Jun 2010
    Posts
    12
    Vote Rating
    0
    RickardP is on a distinguished road

      0  

    Question Edit store but not trigger writer to update proxy

    Edit store but not trigger writer to update proxy


    I have a GroupingStore that i with this code editing a value:

    Code:
    var unitListGrouping = Ext.StoreMgr.lookup('unitListGrouping');
    var rec = unitListGrouping.getById(record.get('Id'));
    rec.beginEdit();
    rec.set('Name', text);
    rec.commit();
    The same store i show data from in a GridPanel and i see in the GridPanel its has updated the value but i dont get it to run the JsonWriter i has set to the GroupingStore.

    I have tried to run unitListGrouping.save() after commit the record and i has tested to set autosave to true.

    I have read many examples that do the same thing but its not triggering the writer to update the proxy.

    Someone has an idea why?

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    1. beginEdit() should always be followed by endEdit() or cancelEdit(). You don't need to use beginEdit/endEdit if you only change a single field in the record.
    2. Don't call commit() if you are planning to save() the record (if the save is successful it will be commited). endEdit() will automatically call save() if autoSave:true.

  3. #3
    Ext JS Premium Member
    Join Date
    Jun 2010
    Posts
    12
    Vote Rating
    0
    RickardP is on a distinguished road

      0  

    Default


    Thanks!

    Sometimes maybe better to use the "community" then try to google stuff :P

    Have been sitting with his like over 6 hours and you give me the answer in 7 minutes ;-)

Similar Threads

  1. I need a complete CF8 crud-example (ExtJS 3.0, store.writer)
    By Mike Robinson in forum Ext 3.x: Help & Discussion
    Replies: 9
    Last Post: 22 Mar 2012, 5:28 AM
  2. RESTful Store Example - how to add edit update - db end
    By Natkeeran in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 10 Nov 2009, 10:27 AM
  3. [FIXED][3.0.0] store metachange expects writer
    By excelsis in forum Ext 3.x: Bugs
    Replies: 1
    Last Post: 20 Jul 2009, 9:07 PM

Thread Participants: 1

Tags for this Thread

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