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

15.3.2 foreach<br />

■ mail<br />

■ file<br />

■ printer<br />

■ destype<br />

Each of <strong>the</strong>se is discussed in <strong>the</strong> following subsections.<br />

Example<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

OR<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Required/Optional<br />

Optional. You can have as many foreach elements as you require.<br />

Description<br />

Use <strong>the</strong> foreach element <strong>to</strong> burst your distribution against a repeating group. You<br />

can use foreach only when <strong>the</strong> associated report definition file (ei<strong>the</strong>r RDF, JSP, or<br />

XML) has its "Repeat On" property for <strong>the</strong> section that will be burst set <strong>to</strong> an<br />

appropriate group. The foreach element specifies that <strong>the</strong> distribution defined<br />

between its open and close parameters should be performed for each repeating group.<br />

The Repeat On property can be set for a report section (Header, Main, and Trailer) <strong>to</strong><br />

associate a data model break group <strong>to</strong> a section. By setting <strong>the</strong> Repeat On property for<br />

a section, you can generate multiple instances of a section, or a repeating section.<br />

When you implement bursting and distribution in a report, you can generate<br />

section-level distribution by setting <strong>the</strong> Repeat On property for a section <strong>to</strong> a data<br />

model break group, which generates an instance of <strong>the</strong> section for each column record<br />

of that break group. Then, you can distribute each instance of <strong>the</strong> section as<br />

appropriate (for example, <strong>to</strong> individual managers in <strong>the</strong> MANAGER group).<br />

If you set <strong>the</strong> Repeat On property for more than one of <strong>the</strong> Header, Main, and Trailer<br />

sections of a report, all Repeat On property values must be set <strong>to</strong> <strong>the</strong> same data model<br />

break group. If <strong>the</strong> Repeat On property for any one of <strong>the</strong> Header, Main, and Trailer<br />

sections is set <strong>to</strong> a different data model break group, <strong>Oracle</strong> <strong>Reports</strong> raises any of <strong>the</strong><br />

following messages:<br />

REP-0069: Internal Error<br />

15-4 <strong>Oracle</strong> Application Server <strong>Reports</strong> Services <strong>Publishing</strong> <strong>Reports</strong> <strong>to</strong> <strong>the</strong> <strong>Web</strong>

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

Saved successfully!

Ooh no, something went wrong!