Creating a default Parameter Form Selecting parameters to include in the Runtime Parameter Form Displaying the Parameter Form at runtime Adding more pages to the Runtime Parameter Form Passing parameters to reports running in batch mode

How To... 4-103

7. Click OK.

4.11.4 Validating a parameter value at runtime

To validate a parameter value at runtime:

1. In the Object Navigator, expand the Data Model node, then the System

Parameters or User Parameters node. 2. Double-click the PLSQL icon for the parameter for which you want to add a PLSQL validation trigger.

3. In the PLSQL Editor, define the PLSQL to be triggered at runtime.

See also Section 2.6.13.3, About validation triggers

4.11.5 Creating a default Parameter Form

To create a default Parameter Form:

1. Choose Tools Parameter Form Builder.

2. Click OK to display the Paper Parameter Form view with the default Parameter

Form.

4.11.6 Selecting parameters to include in the Runtime Parameter Form

To select parameters to include in the Runtime Parameter Form:

1. Choose Tools Parameter Form Builder.

2. In the Parameter Form Builder, click the parameters you want to include in the

Runtime Parameter Form.

3. Modify the parameter labels as desired.

4. Click OK to display the Paper Parameter Form view.

4.11.7 Displaying the Parameter Form at runtime

To display the Runtime Parameter Form when you run your report:

1. Choose Edit Preferences to display the Preferences dialog box.

2. On the Runtime Settings page, make sure that the Parameter Form check box is selected. Caution: If you send the report output to an HTML file, either from Oracle Reports Builder or running it in your Web browser, the value of the first column will be visible in the HTML source, even if Hide First Column is selected. If you run the report from a Web browser and the list of values is unrestricted, the HTML Parameter Form will display a text field instead of a combo box, and a list of static values that you can copy and paste into the text field. In this case, the first column will always be shown in the Parameter Form, even if Hide First Column is selected. 4-104 Oracle Reports Users Guide to Building Reports

4.11.8 Adding more pages to the Runtime Parameter Form

To add more pages to the Runtime Parameter Form:

1. In the Object Navigator, double-click the properties icon next to the report name.

2. In the Property Inspector, under the Parameter Form Window node, set the

Number of Pages property as desired.

4.11.9 Passing parameters to reports running in batch mode

To pass parameters for example, data ranges to reports running in batch mode: ■ Use bind variables in your query to restrict the query, and use the command line parameters to pass the values to the query. For example: Query: SELECT FROM EMP WHERE HIREDATE BETWEEN :FROM_DATE AND :END_DATE Runtime: RWRUN REP1 SCOTTTIGER FROM_DATE=12-JUN-92 END_DATE=24-JUN-92

4.11.10 Creating an HTML Parameter Form header using PLSQL