No data available in this table
No data available in this table
kchhabria
Posts: 2Questions: 0Answers: 0
Hi Allan:
I have the following piece of code within my jsp page and when I render this jsp page, I get the above message "No data available in this table".
I am pasting below my jsp page code snippet for your reference:
"sScrollX" : "100%",
"bScrollCollapse" : true,
"bfilter" : true,
"sAjaxSource": "http://vhlnxa06.rss.hyatt.com:8090/eflex/report/schedule/gridlist",
"fnServerData": function (sSource, aoData, fnCallback) {
$.ajax( {
dataType: "json",
"data": aoData,
type: "POST",
contentType: "application/json; charset=utf-8",
url: "http://vhlnxa06.rss.hyatt.com:8090/eflex/report/schedule/gridlist",
success:function() {
alert ("within success function");
fnCallback();
}
error: function (xhr) {
$('#messages').text(xhr.responseText);
}
});
}
Kindly guide me Allan as I have tried various code changes and I am still stuck and I am unable to get this to work.
my Data Table code initialization is as follows:
"aoColumns": [
// <-- which values to use inside object
{ "mDataProp": "id", "bSearchable": false, "bVisible": false},
{ "mDataProp": "name" },
{ "mDataProp": "version"},
{ "mDataProp": "last run", "fnRender" : function (oObj, val)
{
return formatUserDate (oObj.aData['last run']);
}
},
{ "mDataProp": "def mod by" },
{ "mDataProp": "last modified date", "fnRender" : function (oObj, val)
{
return formatUserDate (oObj.aData['last modified date']);
}
},
{ "mDataProp": "definition status" }
],
Please let me know what other information I should provide here so that you can help me debug this problem soon.
Thanks so much.
Kavita Chhabria
I have the following piece of code within my jsp page and when I render this jsp page, I get the above message "No data available in this table".
I am pasting below my jsp page code snippet for your reference:
"sScrollX" : "100%",
"bScrollCollapse" : true,
"bfilter" : true,
"sAjaxSource": "http://vhlnxa06.rss.hyatt.com:8090/eflex/report/schedule/gridlist",
"fnServerData": function (sSource, aoData, fnCallback) {
$.ajax( {
dataType: "json",
"data": aoData,
type: "POST",
contentType: "application/json; charset=utf-8",
url: "http://vhlnxa06.rss.hyatt.com:8090/eflex/report/schedule/gridlist",
success:function() {
alert ("within success function");
fnCallback();
}
error: function (xhr) {
$('#messages').text(xhr.responseText);
}
});
}
Kindly guide me Allan as I have tried various code changes and I am still stuck and I am unable to get this to work.
my Data Table code initialization is as follows:
"aoColumns": [
// <-- which values to use inside object
{ "mDataProp": "id", "bSearchable": false, "bVisible": false},
{ "mDataProp": "name" },
{ "mDataProp": "version"},
{ "mDataProp": "last run", "fnRender" : function (oObj, val)
{
return formatUserDate (oObj.aData['last run']);
}
},
{ "mDataProp": "def mod by" },
{ "mDataProp": "last modified date", "fnRender" : function (oObj, val)
{
return formatUserDate (oObj.aData['last modified date']);
}
},
{ "mDataProp": "definition status" }
],
Please let me know what other information I should provide here so that you can help me debug this problem soon.
Thanks so much.
Kavita Chhabria
This discussion has been closed.