Respected everyone,
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.
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);
}
},});Would you give me an example?! Thanks a lot.