Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext User
    Join Date
    Aug 2010
    Posts
    23
    Vote Rating
    0
    pouli is on a distinguished road

      0  

    Default Unanswered: Ext.data.Store

    Unanswered: Ext.data.Store


    Hello to all,

    my store initiates a create action although I have made an udpate.
    Why ? Do I have to specify something else as well ?

    Here is the code:

    var jsWriter = new Ext.data.JsonWriter({
    returnJson: true,
    writeAllFields: true
    });

    var jsReader = new Ext.data.JsonReader();

    var proxy = new Ext.data.HttpProxy({
    api:{
    read : '/ajax/remote?doAction=AJAX_loadAdditionalRemark',
    create : '/ajax/remote?doAction=AJAX_saveAdditionalRemark',
    update : 'app.php/settings/update', // Not needed yet
    destroy : 'app.php/settings/destroy' // Not needed yet
    }
    });


    var store = new Ext.data.Store({
    baseParams:
    {
    docID: docID
    },
    id: 'setting',
    proxy: proxy,
    reader: jsReader,
    writer: jsWriter,
    autoSave: false,
    listeners: {
    load: {
    fn: function(store, records, options)
    {
    // testing
    var tn = document.getElementById('totalNumOfEULans').value;
    for( i = 1; i <= tn; i++ )
    {
    Ext.getCmp('txtField' + i).setValue(store.getAt(0).data.text);
    }
    }
    }
    }

    });


    store.load();


    ....

    Inside a button listener I do this:

    var urec = store.getAt(0);
    urec.set('text', 'New text set by the button');

    var tn = document.getElementById('totalNumOfLans').value;
    for( i = 1; i <= tn; i++ )
    {
    Ext.getCmp('txtField' + i).setValue(store.getAt(0).data.text);
    }

    alert('UI updated');

    store.save();
    alert('store save');

    At this point I would expect to receive an update event. On the contrary a create event is being generated.

    Thank you in advance

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Answers
    1
    Vote Rating
    82
    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. Store 'id' is deprecated. Use 'storeId' instead.
    2. You are using metaData to configure the reader? Are you setting the correct idProperty?

  3. #3
    Ext User
    Join Date
    Aug 2010
    Posts
    23
    Vote Rating
    0
    pouli is on a distinguished road

      0  

    Default


    Condor you are correct once again.

Similar Threads

  1. Replies: 13
    Last Post: 1 Mar 2011, 3:14 AM
  2. Replies: 1
    Last Post: 20 Aug 2010, 10:34 PM
  3. store data from Store(Ext.data.JsonStore) in variable
    By Roland D. in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 26 Apr 2010, 6:58 AM
  4. Is Ext.Data.JSONReader invoked when add method is called on Ext.Data.Store
    By nagavasantha in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 9 Sep 2009, 7:34 AM
  5. Replies: 3
    Last Post: 9 Nov 2007, 3:30 AM

Thread Participants: 1

Tags for this Thread