java Programming Glossary: scenarioresults
How To Pass a JRBeanCollectionDataSource to iReport? http://stackoverflow.com/questions/13456114/how-to-pass-a-jrbeancollectiondatasource-to-ireport in the code you have above you build instances of ScenarioResults and add them to a list. Once you have the list all you need.. the list all you need to do is create a JRDataSource List ScenarioResults dataBeanList ...call your method to get the list of results.. Datasource tab. Enter the classname of your bean. ex. ScenarioResults Click Read attributes Highlight the fields you want in the report..
|