P. 1
Oracle Business Intelligence Publisher Report Designer's Guide

Oracle Business Intelligence Publisher Report Designer's Guide

|Views: 1,523|Likes:
Published by Vermontique

More info:

Published by: Vermontique on May 02, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

01/17/2013

pdf

text

original

FE

each:transaction?>

This field defines the opening "for-each" loop for the
transaction group.

100.00 total:dt;'debit'?>

This field is the placeholder for the debit element
from the XML file. Because we want to total this
field by page, the page total declaration syntax is
added. The field defined to hold the total for the
debit element is dt.

90.00

page-total:ct;'credit'?>

This field is the placeholder for the credit element
from the XML file. Because we want to total this
field by page, the page total declaration syntax is
added. The field defined to hold the total for the
credit element is ct.

Net

total:net;'debit -
credit'?>

Creates a net page total by subtracting the credit
values from the debit values.

EFE

Closes the for-each loop.

Note that on the field defined as "net" we are actually carrying out a calculation on the
values of the credit and debit elements.

Now that you have declared the page total fields, you can insert a field in your template
where you want the page totals to appear. Reference the calculated fields using the
names you supplied (in the example, ct and dt). The syntax to display the page totals is
as follows:

For example, to display the debit page total, enter the following:

Page 78 of 132

Therefore to complete the example, place the following at the bottom of the template
page, or in the footer:

Page Total Debit:

Page Total Credit:

Page Total Balance:

The output for this report is shown in the following graphic:

Brought Forward/Carried Forward Totals

Many reports require that a page total be maintained throughout the report output and
be displayed at the beginning and end of each page. These totals are known as
"brought forward/carried forward" totals.

Note: The totaling for the brought forward and carried forward fields is performed in the
PDF-formatting layer. Therefore this feature is not available for other outputs types:
HTML, RTF, Excel.

An example is displayed in the following figure:

Page 79 of 132

At the end of the first page, the page total for the Amount element is displayed as the
Carried Forward total. At the top of the second page, this value is displayed as the
Brought Forward total from the previous page. At the bottom of the second page, the
brought forward value plus the total for that page is calculated and displayed as the new
Carried Forward value, and this continues throughout the report.

This functionality is an extension of the Page Totals feature. The following example walks
through the syntax and setup required to display the brought forward and carried
forward totals in your published report.

Assume you have the following XML:




10001-1
1-Jan-2005
100


10001-2
10-Jan-2005
200


10001-1
11-Jan-2005
150

. . .

The following sample template creates the invoice table and declares a placeholder that
will hold your page total:

Page 80 of 132

The fields in the template have the following values:

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->