Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Downloading Pentaho Report Designer

Pentaho Report Designer is a reporting tool which can be downloaded from sourceforce. Mifos supports Pentaho Report Designer 3.6.0-stable. To download appropriate version it is necessary to follow the steps below:

  • Go to http://reporting.pentaho.com/ page
  • Find Reporting Creation Tools section and click on Downloads link
  • It’ll send You to sourceforce page
  • Select 3.6.0-stable link from the list
  • Choose archive file from the list to download it
  • Extract downloaded archive

...

The application can be executed using report-designer.bat, report-designer.sh in unix or by launcher.jar. The first step in creating a report is to create blanc report template. You can do this by choosing ‘New Report’ from Welcome window or by choosing File -> New

Image Modified

Next step is to choose Data->Add datasource->JDBC from Report Designer menu. It will open JDBC Data Source window. To add connection to local Mifos database You have to click on ‘Add a new connection’ button:

Image Modified

In the new form set the database connection settings:

  • Connection name: Mifos
  • Connection type: MySQL
  • Host name: localhost
  • Database name: mifos
  • Port number: 3306
  • User name: <username>
  • Password: <password to database>
  • Access: Native (JDBC)

...

Image Modified

To verify connection You can click on ‘Test’ button. If everything is OK then Message Box will appear:

Image Modified

Click ok on ‘Message Box’ and ‘Database Connections’ windows. You will be send back to JDBC Data Source window. As You see recently created ‘Mifos’ connection has been added to Connections list. It will always be here so You will be able to use it any time You would like to create Pentaho Report for Mifos. Now You just need to add queries to Mifos database.

...

  • From Connections list select ‘Mifos’.
  • Click on ‘Add Query...’ button, ‘Query 1’ will appear on ‘Available Queries’ and ‘Query Name’ field. You can change it’s name. 
  • Click on yellow line on ‘Query’ field to start writing query
  • Type: SELECT * FROM customer

Image Modified

If You have some customers on Your Mifos instance then after clicking ‘Preview’ button You will see informations about them. This query is just example. You can select data from other tables, and using specific parameters .

Click on ok and go to Report Designer Editor. On right side of the screen You see sidebar with to tabs: ‘Structure’ and ‘Data’. Choose ‘Data’ and double click on ‘Data Sets’,  You will see JDBC (Mifos) connection, under this connection You will find recently added query (Query 1) and whole data from customer table.

Image Modified

Displaying a field in the final report is very easy, simply click on it's name and drag the field on the Details band.

Image Modified

If You want to check if it works just click on ‘Run’ button (green triangle) from task bar.