1. #1
    Sencha User steffenbrem's Avatar
    Join Date
    Mar 2012
    Posts
    36
    Vote Rating
    2
    steffenbrem is on a distinguished road

      0  

    Default Store API destroy multiple records problem

    Store API destroy multiple records problem


    Hello,

    I have a problem with destroying multiple records in a store. It will delete them from the store though, but in the headers of the API call to the server it sends this (output from $_REQUEST):

    Code:
    Array
    (
        [_dc] => 1340269881512
        [records] => id=2
        [subject] => Wij hebben aanvullende informatie
        [customer] => Fix It
        [expire_date] => 2012-06-20 16:35:54
        [callback] => Ext.data.JsonP.callback2
    )
    You can see that only one record is passed to the server. Below I will post the code that I use to remove the records:

    Code:
    click: function( el ) {
        var grid = el.up('gridpanel');
        var selection = grid.getSelectionModel().getSelection();
    
    
        Ext.Msg.confirm('Remove', 'Are you sure u want to remove those items?', function(btn, text) {
            if ( btn == 'yes' ) {
                // Get store reference
                var rappels = Ext.getStore('Rappels');
                
                // Here I tell the store to remove the records in the selection array
                rappels.remove(selection);
                rappels.save();
            }
        });
    }
    Inside the variable selection are the records (model objects) that where selected.

    In the gridpanel it is properly deleting the records when calling .remove(). But it's just the API call parameters that are wrong, I can't process the data server sided now.

    I hope somebody could help me out here

    Thanks!


    Steffen

  2. #2
    Sencha User steffenbrem's Avatar
    Join Date
    Mar 2012
    Posts
    36
    Vote Rating
    2
    steffenbrem is on a distinguished road

      0  

    Default


    This is what I see in the HTTP headers:

    Code:
    _dc:
    1340270836975
    records:
    id
    subject:
    Betreft aanrijding kruispunt
    customer:
    Praxis
    expire_date:
    2012-06-20 16:34:43id
    subject:
    Wij hebben aanvullende informatie
    customer:
    Fix It
    expire_date:
    2012-06-20 16:35:54id
    subject:
    Wij hebben aanvullende informatie
    customer:
    Online Supporter
    expire_date:
    2012-06-20 16:35:54
    callback:
    Ext.data.JsonP.callback2

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