No Data Available in Table (Newbie)

No Data Available in Table (Newbie)

spacehunterspacehunter Posts: 4Questions: 0Answers: 0
edited February 2012 in General
Data Extraction...
[code]
{
"aaData": [
{
"PROJECTION_START": "8/21/2011",
"ISO_CODE": "PJM",
"LDC_CODE": "PECO",
"LOAD_ZONE_CODE": "PECO",
"GROUPING_CODE": "PJM_PECO",
"UNIT_OF_MEASURE": "MW",
"ENERGY_MEASURE": "5.66185",
"MEASURE_TYPE": "NORMALIZED"
},
{
"PROJECTION_START": "8/21/2011 1:00:00 AM",
"ISO_CODE": "PJM",
"LDC_CODE": "PECO",
"LOAD_ZONE_CODE": "PECO",
"GROUPING_CODE": "PJM_PECO",
"UNIT_OF_MEASURE": "MW",
"ENERGY_MEASURE": "34.85697",
"MEASURE_TYPE": "NORMALIZED"
}
]}
[/code]
HMTL
[code]




[/code]
JS Code...
[code]
/* Populate the forecast data */
$('#forecast_table_id').dataTable( {
"aaData": this.forecastDataList,
"aoColumns": [
{ "sName": "PROJECTION_START" },
{ "sName": "GROUPING_CODE" },
{ "sName": "ENERGY_MEASURE" }]
});
[/code]

So, what am I doing wrong?

Thx!

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    That looks okay. I wonder if you try your table with my new debugger ( http://debug.datatables.net/ ) which might provide me with some clue as it what is happening. That or a link would be great.

    Allan
  • spacehunterspacehunter Posts: 4Questions: 0Answers: 0
    Here's the debug code: epijuy

    Thanks Allan!
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Is this the same issue as the other post? You need to use this.forecastDataList.aaData for the above code.

    Allan
This discussion has been closed.