Suresh Kumar Suresh Kumar - 7 months ago 34
Java Question

How to populate Japser report For a list of objects where each object has a list of objects inside?

Object is like this

class jobVO{
List<taskVO> tasks;
class TaskVO{
String name;

I need to pass List to a jrxml and print.

I tried with subreports. but there I couldn't find a way to pass the params.
Also tried with collection datasource also. There the problem I found was need to mention the factory method. My requirement is to create this report dynamically.

created 2 subreports

    <band height="60" splitType="Stretch">
            <reportElement x="-19" y="34" width="560" height="26" uuid="7006626b-cfcb-4dcc-a1c8-3ef0f95e0440"/>