1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    9
    Vote Rating
    0
    Satapathy is on a distinguished road

      0  

    Default Row editor firing an insert instead of update the record

    Row editor firing an insert instead of update the record


    Hi,
    I am new to Ext JS and need your help for the same problem
    I am using the Ext JS version 3.3.1. I have been struggling record update problem in row editor.
    I am doing updates/insert on some records using the RowEditor plugin. Updates/Insert of new record is working fine upto
    few minutes. But after few mins suddenly grid is not refershing, store is not loading all data from the database.
    If I click on a record, its roweditor is opening. I am trying to modify the record. But, unexpectdly I could see instead of
    updating the record, it is inserting new record(different id) which is a duplicate record into database.
    And as I have already problem of grid not refreshing (after few mins) I cannot see the duplicate record until I manually
    load the screen again. Code looks like:

    var store= new Ext.ux.data.PagingJsonStore({
    autoLoad: true,
    autoDestroy: true,
    autoSave:false,
    timeout:60000,
    autoload: {params: {start: 0, limit: PAGE_SIZE}}

    //After every updates:
    grid.getStore().reload();
    grid.getView().refresh();
    So, need your help how to refresh the store/grid automatically after every update and how to avoid duplicate record insert into database?

    Thanks in advance.
    Please help

  2. #2
    Sencha User
    Join Date
    Dec 2011
    Posts
    9
    Vote Rating
    0
    Satapathy is on a distinguished road

      0  

    Default Row editor firing an insert instead of update the record in EXTJS 3.3.1

    Row editor firing an insert instead of update the record in EXTJS 3.3.1


    Hello mitchellsimoens,

    Help me please for the above problem.

    Thanks in advance

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