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

grp:Item

Holds the
opening for-
each loop for
the item
element.

Plasma
TV

The
placeholder
for the name
element from
the XML file.

IF

The opening

Page 70 of 132

of the if
statement to
test for the
attribute value
"PRIVATE".
Note that this
syntax uses
an XPath
expression to
navigate back
to the "items"
level of the
XML to test
the attribute.
For more
information
about using
XPath in your
templates, see

XPath
Overview.

Quantity N/A

Boilerplate
heading

end-if

Ends the if
statement.

20

if?>

The
placeholder
for the
quantity
element
surrounded by
the "if"
statement.

1,000.00

The
placeholder
for the price
element.

end grp

Closing tag of
the for-each
loop.

Page 71 of 132

The conditional column syntax is the "if" statement syntax with the addition of the
@column clause. It is the @column clause that instructs BI Publisher to hide or show
the column based on the outcome of the if statement.

If you did not include the @column the data would not display in your report as a result
of the if statement, but the column still would because you had drawn it in your
template.

Note: The @column clause is an example of a context command. For more information,
see Using Context Commands.

The example will render the output shown in the following figure:

If the same XML data contained the type attribute set to "PRIVATE" the following output
would be rendered from the same template:

Row Formatting

BI Publisher allows you to specify formatting conditions as the row-level of a table.
Examples of row-level formatting are:

Highlighting a row when the data meets a certain threshold.
Alternating background colors of rows to ease readability of reports.
Showing only rows that meet a specific condition.

Conditionally Displaying a Row

To display only rows that meet a certain condition, insert the
tags at the beginning and end of the row, within the for-each tags for the group. This is
demonstrated in the following sample template.

Page 72 of 132

Note the following fields from the sample figure:

Default Text
Entry

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)//-->