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.

Batch Removing Report Packages<br />

at runtime. Similarly, if you want <strong>to</strong> restrict system parameters, such as COPIES, <strong>to</strong><br />

limit <strong>the</strong> number of copies a user can make, you do so by using <strong>the</strong> P_<br />

PARAMETERS parameter. The edited P_PARAMETERS keyword might look like <strong>the</strong><br />

following:<br />

P_PARAMETERS=>'(P_LASTNAME, LOV=LASTNAME_LOV)(P_SSN)(COPIES,<br />

DEFAULT=1,LOW=1,HIGH=2)'<br />

This revised code segment imposes <strong>the</strong> following restrictions on <strong>the</strong> report:<br />

■ The P_LASTNAME user parameter is limited <strong>to</strong> <strong>the</strong> values listed in <strong>the</strong><br />

LASTNAME_LOV list of values.<br />

■ A user-supplied value for P_SSN is required.<br />

■ The default value of <strong>the</strong> COPIES system parameter is one and <strong>the</strong> number of<br />

printed copies must be in a range from 1 <strong>to</strong> 2.<br />

4. Save and close <strong>the</strong> output.sql file.<br />

C.1.2 Run <strong>the</strong> Script in SQL*Plus<br />

To actually register your reports in <strong>Oracle</strong>AS Portal, you must run <strong>the</strong> script generated<br />

for you by rwconverter:<br />

1. Start SQL*Plus and connect <strong>to</strong> <strong>the</strong> <strong>Oracle</strong>AS Portal schema that you want <strong>to</strong> own<br />

<strong>the</strong> packaged procedures.<br />

2. From <strong>the</strong> SQL*Plus command prompt, execute <strong>the</strong> script you created with<br />

rwconverter:<br />

@ output.sql<br />

The script will execute and create packages in <strong>Oracle</strong>AS Portal for each report<br />

listed in <strong>the</strong> script with <strong>the</strong> specified parameters.<br />

3. Log in <strong>to</strong> <strong>Oracle</strong>AS Portal as a user with RW_ADMINISTRATOR privileges.<br />

4. Click <strong>the</strong> Corporate Documents tab.<br />

5. Click Builder.<br />

6. Click <strong>the</strong> Administer tab.<br />

7. In <strong>the</strong> <strong>Oracle</strong> <strong>Reports</strong> Security portlet, click <strong>Oracle</strong> <strong>Reports</strong> Security Settings.<br />

8. In <strong>the</strong> <strong>Reports</strong> Definition File Access portlet, enter <strong>the</strong> P_NAME of one of <strong>the</strong><br />

reports you batch registered in your SQL script.<br />

9. Click Edit. The Manage Component page is displayed.<br />

10. Click Edit at <strong>the</strong> bot<strong>to</strong>m of <strong>the</strong> page <strong>to</strong> edit <strong>the</strong> parameters of <strong>the</strong> report.<br />

11. Review and edit <strong>the</strong> parameters as desired.<br />

12. Click OK.<br />

13. Click Close.<br />

14. Repeat steps 8 through 13 for each report that you batch registered with your<br />

script.<br />

C.2 Batch Removing Report Packages<br />

To remove many reports from <strong>Oracle</strong>AS Portal at once, do <strong>the</strong> following:<br />

Batch Registering <strong>Reports</strong> in <strong>Oracle</strong>AS Portal C-3

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

Saved successfully!

Ooh no, something went wrong!