JSON - Unable to show Sub Report

0

Hi all,

 

I'm having issues to show data in sub report. Here is my json:

{
  "MainReportData": {
    "MainReportSummary": [
      {
        "name": "Report Number-Test",
        "value": "NONE 9-2016-Test"
      },
      {
        "name": "Calibration Date",
        "value": "12-12-2016"
      }
    ]
  },
  "SummaryCalibrationResults": {
    "SummaryData": [
      {
        "name": "Report Number",
        "value": "NONE 9-2016-Test"
      },
      {
        "name": "Link Work Order Number",
        "value": "257815"
      }
    ]
  }
}

In main report I want to show MainReportSummary, and in subreport I want to show SummaryData.

I tried passing REPORT_DATA_SOURCE parameter to sub report. Value of REPORT_DATA_SOURCE is ((net.sf.jasperreports.engine.data.JsonDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("SummaryCalibrationResults").

Here are the reports: https://files.fm/u/aj89443t#_

May I know what I'm doing wrong? Please, help me. This is urgent.

Thanks in advance.

pavan.elthepu's picture
Joined: Apr 2 2014 - 1:56am
Last seen: 1 year 5 months ago

File upload services, such as files.fm, don't keep for files forever.  This link is no longer valid.  Learn to upload your images here. We won't expire them.

djohnson53 - 1 year 1 month ago

0 Answers:

No answers yet
Feedback
randomness