sciuridae0603 Posted September 26, 2019 Share Posted September 26, 2019 Hi there,I have a JSON format like this one.[{ "table": { "id": "1", "name": "joe", "tax": "255332523", "fax": "2424474745", "phone": "0932467893" }, "chart": [{ "category": "a", "value": "1" }, { "category": "b", "value": "1" } ]}, { "table": { "id": "2", "name": "jane", "tax": "363626236", "fax": "35476346", "phone": "34534734734" }, "chart": [{ "category": "a", "value": "2" }, { "category": "b", "value": "2" } ]}, { "table": { "id": "3", "name": "james", "tax": "255332523", "fax": "2424474745", "phone": "346346346" }, "chart": [{ "category": "a", "value": "3" }, { "category": "b", "value": "3" } ]}][/code]And I want it display as page by page , and chart and table in same page.But it has some error , table displays normal , but chart always display last data from array.Table and Chart dataset using JRDatasource => ((net.sf.jasperreports.engine.data.JsonDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("table/chart") .Where I do wrong ? Please help :(Thanks . Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now