-
26 Dec 2010 10:33 PM #11Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 44
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 } });
-
26 Dec 2010 10:35 PM #12
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.
-
26 Dec 2010 10:51 PM #13Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 44
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(';')}


Reply With Quote