2010 © Dirección General de Tecnologías de la Información - Conselleria de Hacienda y Administración Pública - Generalitat Valenciana. This work is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported License. If you remix, transform, or build upon the material, you must give appropriate credit and distribute your contributions under the same license as the original.
This folder contains add-on sources and documents folder docs
with
documentation of this project.
Create a web application with gvNIX/Roo Shell script:
project --topLevelPackage org.gvnix.test.report
jpa setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
entity jpa --class ~.domain.Person --testAutomatically
field string --fieldName name --notNull
web mvc setup
web mvc all --package ~.web
Run the application and take a look to the menu entries:
mvn tomcat:run
Stop tomcat and apply gvNIX report (Install and set gvNIX commands) to the project:
web report add --controller ~.web.PersonController --reportName samplereport
Run the application and a new menu entry has been added (Person samplereport Report):
mvn tomcat:run
The new menu entry gives access to a new form where you can request for a report generation over Person entity. By now, only PDF is the output format available for your report.
Stop tomcat and add a new supported format to your existing report through gvNIX/Roo shell:
web report add –controller ~.web.PersonController –reportName
samplereport –format xls,csv
Run the appliation:
mvn tomcat:run
In the same form page as before the drop-down select has PDF, XLS and CSV as available formats.