Jun 192014
 

BIRT (acronimo di Business Intelligence and Reporting Tools) è un software open source sviluppato in Java che permette di realizzare Report. Attraverso Eclipse è possibile gestire il Report desiderato modificando graficamente il foglio di stile per visualizzare il risultato e impostando la query SQL per recuperare le informazioni desiderate direttamente dal DB di riferimento. E’ uno strumento molto potente e tutti i Report possono essere esportati in diversi formati (pdf, excel, csv, etc.). Il sito ufficiale del progetto è http://www.eclipse.org/birt/

L’azione più facie da eseguire è quella di creare delle tabelle sul foglio di stile del Report per inserire i dati presenti su un DB attraverso una semplice select. E’ possibile annidare le select di modo da far dipendere un risultato di una query da quella padre. Per ottenere il risultato appena descritto riporto i passi principali (in inglese) da seguire:

  1. Start with a new report and create data sources for the common and work item tables.
  2. Create a simple data set from the CONTRIBUTOR table that shows every user in the database; for output columns, include only the CONTRIBUTOR_USERID and the CONTRIBUTOR_NAME, and include no parameters.
  3. Create a data set from the LIVE_WORKITEM_CNT table that shows every work item in the database; for output columns, include only WI_ID, SUMMARY, and CONTRIBUTOR_NAME, and for parameters, include only CONTRIBUTOR_USERID. Supply no default value for that parameter.
  4. Drag the users table to the report.
  5. Add an additional column to the table of users on the report.
  6. Drag the work item table to the new empty column of the users table.
  7. With the work item table selected, open the Properties view to the Binding tab.
  8. Ensure that the work items data set is selected in the Data Set field.
  9. Next to the data set name, click “Dataset Parameter Binding.”
  10. In the Dataset Parameter Binding window, select the CONTRIBUTOR_USERID parameter and then click Edit.
  11. In the expression builder, insert the code row . Note from the available column bindings that this code refers to the data from the outer table of users, not the inner table of work items.
  12. Preview or run the report.

 

Aggiornamento

Per aumentare la memoria dedicata se si rilevano errori “HEAP SIZE” è possibile aumentare il valore attraverso il file eclipse.ini. Nell’applicazione MAC OSx il file si trova dentro l’App (occorre visualizzare il contenuto dell’Applicazione)