So I do now have my working and filling reports. The users of my program can now pass objects from the program to a report object and fill it using the JRBeanCollectionDataSource and that does work. However I can't get all the data in the report I want. I am just very confused about this, how the fields that I declare with a name and a Class map to the properties of the beans in my collection.
I have a hibernate persistent object called Item
Item has a List properties
and property is a table that holds a name, type and value (all more persistent objects).
I need to show on my reports not just properties of the beans but properties of beans that are in List collections of other beans. I am using iReport to build reports and I can do JavaBeanDataSource as well as HQL, but since when the report runs, it's going to have a collection of beans to be filled with, but I need to get only certain elements of the collection depending on criteria, needing to display fields on my report such as :
properties.value where properties.name = 'foo'
where properties is a collection property of the bean in my data source, basically having a query that queries the data in the Bean as my field, and even to be able to create a sub-report listing out the properties that are in the collection that is the property of the bean.
Any help and direction is much appreciated, thank you very much!
Joshua