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.

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

16.2.2 Changing Styles<br />

The data tag has no accompanying attributes. The layout tag has two attributes,<br />

both of which are required: panelPrintOrder and direction. If you use <strong>the</strong><br />

default values for <strong>the</strong>se attributes (respectively acrossDown and default), you don't<br />

need <strong>to</strong> specify <strong>the</strong>m. Examples of <strong>the</strong> data and layout elements are provided in <strong>the</strong><br />

following sections.<br />

The example in this section demonstrates <strong>the</strong> use of XML <strong>to</strong> change <strong>the</strong> fill and line<br />

colors used for report fields F_Mincurrent_pricePersymbol and F_<br />

Maxcurrent_pricePersymbol.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

We assume in this example that <strong>the</strong> section and field tags' name attributes match<br />

<strong>the</strong> names of fields in <strong>the</strong> Main section of <strong>the</strong> report this XML file will cus<strong>to</strong>mize. In<br />

keeping with this assumption, <strong>the</strong> o<strong>the</strong>r attributes of <strong>the</strong> field tag will be applied<br />

only <strong>to</strong> <strong>the</strong> fields of <strong>the</strong> same name in <strong>the</strong> report's Main section.<br />

16.2.3 Changing a Format Mask<br />

The example in this section demonstrates <strong>the</strong> use of XML <strong>to</strong> change <strong>the</strong> format mask<br />

used for a report field f_trade_date.<br />

<br />

<br />

). If <strong>the</strong> field tag used<br />

additional sub-tags, you would close it with .<br />

16.2.4 Adding Formatting Exceptions<br />

The example in this section demonstrates <strong>the</strong> use of XML <strong>to</strong> add a formatting<br />

exception <strong>to</strong> highlight values greater than 10 in a report's f_p_e and f_p_e1 fields.<br />

<br />

<br />

<br />

<br />

16-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!