01.02.2013 Views

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Elements of a Distribution XML File<br />

@myco.com). In both cases, you will get dynamic e-mail addressing. The example you<br />

use will depend on whe<strong>the</strong>r <strong>the</strong> variable contains all <strong>the</strong> information you need or<br />

requires additional information in order <strong>to</strong> be complete.<br />

For even more complex layouts, you can also reference report columns you created<br />

with PL/SQL formulas. For example, in your report you may define <strong>the</strong> PL/SQL<br />

column:<br />

PL/SQL formula CF_MAILID: return(:first_name||'.'||:last_name)<br />

You'd reference this column in <strong>the</strong> distribution XML file as:<br />

<strong>to</strong>="&amp;&lt;CF_MAILID&gt;@mycompany.com"<br />

15.3 Elements of a Distribution XML File<br />

The elements of a distribution XML file include:<br />

■ destinations<br />

■ foreach<br />

■ mail<br />

■ body<br />

■ include<br />

■ file<br />

■ printer<br />

■ destype<br />

■ attach<br />

15.3.1 destinations<br />

■ property<br />

Most of <strong>the</strong>se elements have attributes that define <strong>the</strong> behavior of <strong>the</strong> element. The<br />

following sections describe <strong>the</strong> distribution XML file elements and <strong>the</strong>ir associated<br />

attributes. Distribution XML File Examples provides use cases that demonstrate <strong>the</strong><br />

distribution XML file elements and attributes in action.<br />

Example<br />

<br />

[One or more distribution specifications]<br />

<br />

Required/Optional<br />

Required. You must have no more or less than one destinations element in your<br />

distribution XML file.<br />

Description<br />

The destinations element opens and closes <strong>the</strong> content area of <strong>the</strong> distribution<br />

XML file. In terms of <strong>the</strong> distribution XML file's tagging hierarchy, all <strong>the</strong> o<strong>the</strong>r<br />

elements are subordinate <strong>to</strong> <strong>the</strong> destinations element.<br />

The destinations element has <strong>the</strong> following sub-elements:<br />

■ foreach<br />

Creating Advanced Distributions 15-3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!