sending additional parameter as path param
sending additional parameter as path param
faixan
Posts: 3Questions: 2Answers: 0
I need to send an additional path parameter in my json URI
how am going to do it ?
Am I doing correct ?
I need to add one more param as "name" after 'false' in URI
$('#testing-datatable').dataTable({
"serverSide": true,
"ajax" : {
url : "/kb/SalesOrder/getPendingOrders/maldabaani/false",
data : function(data) {
data.name : "hello";
},
dataSrc: function(json) {
//console.log(json[0].order.username);
var return_data = new Array();
for(var i=0;i< json.length; i++){
return_data.push({
'username': json[i].order.username,
'creationDate' : json[i].order.creationDate,
'userRegionCode' : json[i].order.userRegionCode,
'store' : json[i].store,
'partyId' : json[i].order.partyId,
'enfirstName' : json[i].order.enfirstName,
})
}
return return_data;
console.log(return_data);
}
}
This discussion has been closed.
Answers
Hi @faixan ,
Yep, that looks good. See this example here, there's a bit more explanation on the subject.
Cheers,
Colin