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.

16.4.1 Applying an XML Report Definition at Runtime<br />

Using XML Files at Runtime<br />

To apply an XML report definition <strong>to</strong> an RDF or XML file at runtime, you can use <strong>the</strong><br />

CUSTOMIZE command line keyword or <strong>the</strong> SRW.APPLY_DEFINITION built-in<br />

procedure. CUSTOMIZE can be used with rwclient, rwrun, rwbuilder,<br />

rwconverter, and URL report requests.<br />

Note: Refer <strong>to</strong> Performing Batch Modifications for more<br />

information about using CUSTOMIZE with rwconverter.<br />

16.4.1.1 Applying One XML Report Definition<br />

The following command line sends a job request <strong>to</strong> <strong>Oracle</strong>AS <strong>Reports</strong> Services and<br />

applies an XML report definition, EMP.XML, <strong>to</strong> an RDF file, emp.rdf. In this example,<br />

<strong>the</strong> CUSTOMIZE command refers <strong>to</strong> a file located in a Windows direc<strong>to</strong>ry path. For<br />

UNIX, specify <strong>the</strong> path according <strong>to</strong> UNIX standards (i.e., myreports/emp.xml).<br />

rwclient report=emp.rdf cus<strong>to</strong>mize=\myreports\emp.xml<br />

USERID=username/password@my_db destype=file desname=emp.pdf<br />

desformat=PDF server=server_name<br />

When you use RWRUN, <strong>the</strong> <strong>Reports</strong> Runtime command, <strong>the</strong> equivalent command line<br />

would be:<br />

RWRUN USERID=username/password@my_db report=emp.rdf<br />

cus<strong>to</strong>mize=\myreports\emp.xml destype=file desname=emp.pdf<br />

desformat=PDF<br />

When testing your XML report definition, it is sometimes useful <strong>to</strong> run your report<br />

requests with additional options <strong>to</strong> create a trace file. For example:<br />

TRACEFILE=emp.log TRACEMODE=trace_replace TRACEOPT=trace_app<br />

Note: Unless you care <strong>to</strong> change <strong>the</strong> default, it isn't necessary <strong>to</strong><br />

include a trace in <strong>the</strong> command line if you have specified a default<br />

trace option in <strong>the</strong> <strong>Reports</strong> Server configuration file.<br />

The trace file provides a detailed listing of <strong>the</strong> creation and formatting of <strong>the</strong> report<br />

objects.<br />

16.4.1.2 Applying Multiple XML Report Definitions<br />

You can apply multiple XML report definitions <strong>to</strong> a report at runtime by providing a<br />

list with <strong>the</strong> CUSTOMIZE command line keyword. The following command line sends<br />

a job request <strong>to</strong> <strong>Oracle</strong>AS <strong>Reports</strong> Services that applies two XML report definitions,<br />

EMP0.XML and EMP1.XML, <strong>to</strong> an RDF file, EMP.RDF:<br />

rwclient report=emp.rdf<br />

cus<strong>to</strong>mize="(d:\corp\myreports\emp0.xml,d:\corp\myreports\emp1.xml)"<br />

userid=username/password@my_db destype=file desname=emp.pdf<br />

desformat=PDF server=server_name<br />

Note: In this example, <strong>the</strong> CUSTOMIZE command entry<br />

demonstrates a direc<strong>to</strong>ry path <strong>to</strong> files s<strong>to</strong>red on a Windows<br />

platform. For UNIX, use that platform's standard for specifying<br />

direc<strong>to</strong>ry paths (i.e., forward slashes instead of backward).<br />

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

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

Saved successfully!

Ooh no, something went wrong!