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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Creating XML Cus<strong>to</strong>mizations<br />

2. S<strong>to</strong>re <strong>the</strong> XML cus<strong>to</strong>mization in a location that is accessible <strong>to</strong> <strong>Oracle</strong>AS <strong>Reports</strong><br />

Services.<br />

3. Apply <strong>the</strong> XML cus<strong>to</strong>mization <strong>to</strong> ano<strong>the</strong>r report with <strong>the</strong> CUSTOMIZE command<br />

line keyword or <strong>the</strong> SRW.APPLY_DEFINITION built-in procedure, or run <strong>the</strong> XML<br />

cus<strong>to</strong>mization by itself (if it contains a complete report definition) with <strong>the</strong><br />

REPORT (or MODULE) command line keyword.<br />

16.2 Creating XML Cus<strong>to</strong>mizations<br />

This section provides examples of various report cus<strong>to</strong>mizations. It includes examples<br />

of:<br />

■ Required XML Tags<br />

■ Changing Styles<br />

■ Changing a Format Mask<br />

■ Adding Formatting Exceptions<br />

■ Adding Program Units and Hyperlinks<br />

■ Adding a New Query and Using <strong>the</strong> Result in a New Header Section<br />

■ Encoding <strong>the</strong> URL<br />

16.2.1 Required XML Tags<br />

See Also: Command Line Options<br />

For information on using <strong>the</strong> command line keywords.<br />

Every XML cus<strong>to</strong>mization must contain <strong>the</strong> following required tag pair:<br />

<br />

For example, <strong>the</strong> following is <strong>the</strong> most minimal XML cus<strong>to</strong>mization possible:<br />

<br />

<br />

This XML cus<strong>to</strong>mization would have a null effect if applied <strong>to</strong> a report because it<br />

contains nothing. It can be parsed because it has <strong>the</strong> needed tags, but it is useful only<br />

as an example of <strong>the</strong> required tags.<br />

The tag indicates <strong>the</strong> beginning of <strong>the</strong> report cus<strong>to</strong>mization, its name, and<br />

<strong>the</strong> version of <strong>the</strong> Data Type Dictionary (DTD) file that is being used with this XML<br />

cus<strong>to</strong>mization. The tag indicates <strong>the</strong> end of <strong>the</strong> report cus<strong>to</strong>mization.<br />

The report tag's name attribute can be any name you wish, ei<strong>the</strong>r <strong>the</strong> name of <strong>the</strong><br />

report <strong>the</strong> XML file will cus<strong>to</strong>mize, or any o<strong>the</strong>r name.<br />

This example represents a minimal use of <strong>the</strong> tag. The tag also<br />

has many attributes, most of which are implied and need not be specified. The only<br />

required attribute is DTDVersion.<br />

A full report definition requires both a data model and a layout and <strong>the</strong>refore also<br />

requires <strong>the</strong> following tags and <strong>the</strong>ir contents:<br />

■ <br />

■ <br />

Cus<strong>to</strong>mizing <strong>Reports</strong> with XML 16-3

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

Saved successfully!

Ooh no, something went wrong!