1. #11
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    Code:
    var data = [];
    Ext.each(grid.getSelectionModel().getSelections(), function(rec){
      data.push(rec.get('id'));
    });
    Ext.Ajax.request({
      url: 'myurl',
      params: {
        id: data
      },
      success: function(){
        // do something
      },
      failure: function(){
        // do something else
      }
    });

  2. #12
    Sencha User
    Join Date
    Nov 2010
    Posts
    47
    Vote Rating
    0
    anshu_gupta is on a distinguished road

      0  

    Default


    i tried this but data is showing properly in firebug but when i receive it server its showing me as null. In my data object i have two params. id and a boolean value but when i retreive them in my restful webservice its null. what maybe the issue? i am stuck in it.

  3. #13
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    Does your server know how to handle multivalued parameters like 'id' in the previous example (e.g. in Java you need to use request.getParameterValues instead of request.getParameter)?

    Alternatively, you could concatenate the array values, e.g.
    Code:
    params: {id: data.join(';')}

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar