Usage of the file field to generate Jasper Reports - imona/tutorial GitHub Wiki
A sample application and a report template can be found under:
https://github.com/imona/tutorial/tree/master/Report%20Application%20%26%20File%20Field%20Sample
- Download the both files, report-0.imona and report.jrxml.
- Install the app report-0.imona.
- Open settings screen, upload the template file report.jrxml and save the settings screen.
- Close the tab, open "Entity" screen, fill the fields and click on buttons to observe the behaviour. One button uses the report defined in application, the other one uses the report in the file field on settings entity.
Sample MVEL Script:
- var temp = query("from raporlar")[0];
- var file = temp.rapor;
- openReportPage("Main Report", "proposal", file, [current]);