No matching records found - Server Side Processing
No matching records found - Server Side Processing
[quote]
I am using server side processing and JSON is appDetails= ["aaData":{}, "isSuccessful"]
Here i show the aaData values in DataTable
Here, oLanguage.sEmptyTable is not working and oLanguage.sZeroRecords is working
I got response from server side correctly
[/quote]
[code]
var DataTableApp = $('#DataTableApp').dataTable({
"sAjaxSource": "php/getAppDetails.php",
"bRetrieve":true,
"bDestroy":true,
"bServerSide": true,
"sAjaxDataProp": "aaData",
"sServerMethod": "GET",
"iTotalDisplayRecords":2,
"iTotalRecords":2,
"fnServerParams": function ( aoData ) {
var imei_app = document.getElementById('imei').value;
console.log(imei_app);
aoData.push({"name":"imei","value":imei_app});
},
"aoColumns": [{
"mData": "appName"
}, {
"mData": "appId"
}, {
"mData": "versionInstalled"
}, {
"mData": "appSize"
}, {
"mData":"dataSize"
},{
"mData": "appType"
},{
"mData":"installedLocation"
},{
"mData": "installedTime"
}]
});
[/code]
I am using server side processing and JSON is appDetails= ["aaData":{}, "isSuccessful"]
Here i show the aaData values in DataTable
Here, oLanguage.sEmptyTable is not working and oLanguage.sZeroRecords is working
I got response from server side correctly
[/quote]
[code]
var DataTableApp = $('#DataTableApp').dataTable({
"sAjaxSource": "php/getAppDetails.php",
"bRetrieve":true,
"bDestroy":true,
"bServerSide": true,
"sAjaxDataProp": "aaData",
"sServerMethod": "GET",
"iTotalDisplayRecords":2,
"iTotalRecords":2,
"fnServerParams": function ( aoData ) {
var imei_app = document.getElementById('imei').value;
console.log(imei_app);
aoData.push({"name":"imei","value":imei_app});
},
"aoColumns": [{
"mData": "appName"
}, {
"mData": "appId"
}, {
"mData": "versionInstalled"
}, {
"mData": "appSize"
}, {
"mData":"dataSize"
},{
"mData": "appType"
},{
"mData":"installedLocation"
},{
"mData": "installedTime"
}]
});
[/code]
This discussion has been closed.
Replies
That's not an initialisation property - I don't understand what that is doing there.
Please link to a test case showing the issue - as required in the forum rules.
Allan