Compiere privides three types of reports:
- Ad-hoc reports right from the Window Tab (click on the Report icom or ALT-R). You use the Search button to select the records you want to report on.
- List Reports you start from the menu with optional parameters
- Forms (like Invoices, ...)
All reporting in Compiere has two parts: The data ("model") and the format ("view").
You can have multiple views on the same model (Model Driven Architecture) - i.e. you use the invoice data to create a daily invoice report and a customer history report - you would use different columns, different sorting and different summary information, but it is based on the same data (model).
In this posting, I'll concentrate on how to add a new model for reporting. For that, you can use database tables directly, or database views. The creation of a vew is much easier in Compiere, as you do not have to de-reference the fields. Example: when you want to list the payment term of an invoice, you just add the column C_PaymentTerm_ID to the report, Compiere autimatically re-references the ID and prints the name of the payment term.
When using a third party reporting tool, you would have to program the view to display the payment term name. Also, in Compiere reporting, all security rules are automatically applied - example: if a user of the system would not have access to the payment term, you would have to create a separate report for that user. So, to create a custom report, you "just" have to create a database view.
Recent Comments