3
Guys, I have 2 reports, the sub report and the main report, but when I give a preview I can only view the main one, as I do to display the sub report as well?
I’m using Jaspersoft Studio.
I have a report that is filled by a list and parameters, but I found a problem and I received help here in the forum, the person who helped me said that the best way to solve this problem is by creating a Subreport. The problem is this, I want to leave my report as follows:
As you can see, a Beneficiary has more than one procedure. Currently I can list all the procedures and beneficiaries, but the procedures repeat. This is what I currently get:
My Beneficiary Name repeats, and shows the other procedure, not all together in one place.
I am trying to place a Subreport with the Payee Name and Identifier in a Group Header, and the procedures (Date Completion, Service Description, Cod Tab..) within Detail. I think that way it would work, but I’m not able to call the Subreport within my report.
Secondary report needs to be compiled in a file
.jasper
in some specific directory. And then in the subreport component in the main report you need to specify a path to the compiled subreport file. If you need more help, click [Edit] on your question and add more information about your report. Hug!– utluiz
I understood, but how do I step this way, what kind of parameter?
– DiegoAugusto
edited the question
– DiegoAugusto
Take a look here.
– utluiz
I have looked but not understood, there it passes an ID as parameter and I suppose it is by connection JDBC, using lists as data source works the same way?
– DiegoAugusto
Diego, can you give me your report for me to use as a model ?
– Fillipe Desenvolvedor
@Fillipedeveloper of ours, I no longer have access to it a long time hehe.
– DiegoAugusto