Download OpenRPT - pgFoundry

Transcript
Advanced Topics
Note
OpenMFG users can create report definitions using either the
embedded report writer or the standalone OpenRPT application.
The report renderer then uses these report definitions to generate
printed reports.
As you can tell by looking at Figure 3.19, this simple “AdHocItemReport” will list Items and
report on whether they are sold or active. The “AdHocItemReport” report is not one of the
standard OpenMFG reports available in the application’s menu structure. However, we can
retrieve this data and generate an ad hoc report when we combine this report definition with
the standalone report renderer.
The next screenshot shows the Query Source the report definition will use to retrieve the data
from our database:
Figure 3.20: Ad Hoc Report Definition Query Source
As you can see in the Query Source, the SELECT statement retrieves basic Item information
from the item table. Then, MetaSQL is used in the WHERE clause to introduce two parameters: sold_param and active_param. The parameters refer to
the report must interpret to
138 Report Writer User Guide