nicolas400 Posted April 13, 2018 Share Posted April 13, 2018 Hi,I want to know if I can create a Bean like: List<Object, List<Object>> and pass it to a report, to show a Dotter graph where I have multiple column values,The thing is that the secon List can have 2 or more elements and I don't know on runtime!like this: Value 1Value 2Value 3Value 4Value 5Serie 110080100180100Serie 2100100808070Serie 3 And, in other time I only need value 1 and value 2and in other time could be 20 Value commands. I'm using eclipse rcp, with Jasper Reports 4.1.2.I know is old, but i need it !This is a sample on how I pass data to the reports Map<Object, Object> parameters = new HashMap<Object, Object>(); parameters.put("anio", anio.getAnio()); parameters.put("logo", "/images/logo.jpg"); parameters.put("filial", filial); parameters.put("f", cruzas.get(0).getFilial()); //Tomo Primer Filial List<CruzaDTO> contenido = generarContenido(cruzas, filial); JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(contenido); JasperReport report = (JasperReport) JRLoader.loadObject(FilialesReportGenerator.class.getClassLoader().getResourceAsStream("reportes/FilialesLibro.jasper")); print = JasperFillManager.fillReport(report, parameters, ds); Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now