Difference between revisions of "SUN Report Builder/Example"
From Apache OpenOffice Wiki
DrewJensen (Talk | contribs) (→report output) |
m (just made the licence Template work :-)) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 92: | Line 92: | ||
Final report output | Final report output | ||
− | [[Image:Sum_exmp_rpt.gif|thumb|200px]] | + | |
+ | [[Image:Sum_exmp_rpt.gif|center|thumb|200px]] | ||
+ | |||
+ | |||
+ | [[Category:Sun Report Builder]] | ||
+ | [[Category:Base Documentation]] | ||
+ | {{CCBY}} |
Latest revision as of 17:48, 22 January 2009
Data Model
The example will use a very simple, and common, data model. Two tables, one a list of products and the other a list of the cost for multiple purchases of each product. Referred to as One to Many ( 1..n) relation.
Products Table ( Table2 )
|
|
|
|
|
|
|
|
|
|
Product Cost Table ( Table1 )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The report will display all cost records for each product, and group by the product name. Therefore a query is used to put the data from the two tables into one contiguous result set, for use by the report builder.
Report layout - User defined functions
The Sun Report Builder allows creation of user defined functions at two levels. The report level and the group level.
Final report output
Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY). |