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.

END IF;<br />

END;<br />

Debugging XML Report Definitions<br />

For this example <strong>to</strong> work, <strong>the</strong> PL/SQL that calls this procedure would need <strong>to</strong> declare<br />

a variable of type TEXT_IO.File_Type. For example:<br />

cus<strong>to</strong>m_summary Text_IO.File_Type;<br />

You would also need <strong>to</strong> open <strong>the</strong> file for writing and call <strong>the</strong> addaline procedure,<br />

passing it <strong>the</strong> string <strong>to</strong> be written and <strong>the</strong> file <strong>to</strong> which it should be written. For<br />

example:<br />

cus<strong>to</strong>m_summary := Text_IO.Fopen(:file_direc<strong>to</strong>ry || 'vid_summ_per.xml', 'w');<br />

addaline('',<br />

cus<strong>to</strong>m_summary);<br />

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

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

Saved successfully!

Ooh no, something went wrong!