Re: java example exception in viewer.jsp
Posted: Thu Nov 02, 2017 7:57 am
Hi, sorry but have to trouble you again.
Have a json data source and want to generate a report.
Below is the baisic structure of the json list.
I need to display both the first level data and the second level data in one table. Data achieved from the first level is OK, e.g, "deviceType" or "generateDt" works just fine. But "eventName" inside the data node "c" doesnot work properly. Only the first line is displayed OK, other values are just the same as the first ones. Why?
Have a json data source and want to generate a report.
Below is the baisic structure of the json list.
Code: Select all
{
"eventId": 598334,
"deviceType": 0,
"deviceNo": "RNG0010720000301",
"generateDt": "03/01/2015 05:11:12",
"eventCode": 70,
"collectDt": "03/01/2015 06:11:12",
"collectSource": null,
"eventTag": "Supervision monitor threshold exceeded",
"autoRunId": 2015010305,
"isNotify": null,
"notifyDt": null,
"code": null,
"c": {
"eventCode": 70,
"eventName": "Supervision monitor threshold exceeded",
"eventDesc": "Indicates that the supervision monitor threshold has been exceeded.",
"eventType": null,
"eventLevel": 3,
"eventCateId": 3,
"cimNo": null
},
"dataEventDets": null,
"generalParam": {
"deviceType": "DCU",
"eventLevel": "Low"
}
}