Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

how to get context of response body after listGrid.startEditingNew

$
0
0
Respected everyone,

Code:

isc.RestDataSource.create({
ID : "countryDS",
dataFormat : "xml",
recordXPath : "//country",
fields : [
          {name : "countryCode", title : "Code", primaryKey : true},
          {name : "countryName", title : "Country"},
          {name : "capital", title : "Capital"},
          {name : "continent", title : "continent"}],
operationBindings : [{operationType : "add", dataURL : "../insertInfo.form"}],
transformRequest : function (dsRequest) {
  if (dsRequest.operationType == "add") {
    return isc.addProperties({}, dsRequest.data, dsRequest.data);
 }
},});

above is the dataSource, after I call the method ListGrid.startEditingNew(), how can I get parameters contained in responsebody? Can DSCallBack do the work?!
Would you give me an example?! Thanks a lot.

Viewing all articles
Browse latest Browse all 4756

Trending Articles