No Data Available in Table (Newbie)
No Data Available in Table (Newbie)
spacehunter
Posts: 4Questions: 0Answers: 0
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!
[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!
This discussion has been closed.
Replies
Allan
Thanks Allan!
Allan