Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

Latest commit

 

History

History

addon-web-mvc-report

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

gvNIX Web report add-on

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.

1. Introduction

Add-on giving reports support.

Supported report tools:

2. JasperReports

3. Project contents

This folder contains add-on sources and documents folder docs with documentation of this project.

4. Installation

4.1. Install the Add-on.

Install gvNIX or the Add-on in Roo shell.

4.2. Create a web application

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.