I am trying to generate a report with a header, a table with a detail of products and footer, the header and footer fills with parameters, but i don't know how to fill the table because it is a subreport, i have the input data from json with a number of products.
My code works but the table shows empty, i know it is because the subreport doesn't have a datasource, but i don't know how to do that. I need to fill the data in the table according to the number of products on the JSON and that the tables repeat over the document two times in this case. Can anyone helps me to do that?. Thanks.
JSON Data in subreport
in Products
Posted
I am trying to generate a report with a header, a table with a detail of products and footer, the header and footer fills with parameters, but i don't know how to fill the table because it is a subreport, i have the input data from json with a number of products.
My code works but the table shows empty, i know it is because the subreport doesn't have a datasource, but i don't know how to do that. I need to fill the data in the table according to the number of products on the JSON and that the tables repeat over the document two times in this case. Can anyone helps me to do that?. Thanks.
This is my code:
JSON Data:
Java:
Main Report
SubReport