Using a pre-defined system parameter Creating a user parameter

How To... 4-101

4.11 Work with Parameters and the Parameter Form

This section provides procedures for the following tasks that you may perform as you work with parameters and the Parameter Form: ■ Using a pre-defined system parameter ■ Creating a user parameter ■ Creating a list of values LOV for a parameter ■ Validating a parameter value at runtime ■ 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 ■ Creating an HTML Parameter Form header using PLSQL ■ Creating an HTML Parameter Form footer using PLSQL ■ Creating HTML Parameter Form input or select events ■ Changing HTML Parameter Form input to uppercase See also Section 1.9.1, About parameters Section 2.3.4, About referencing columns and parameters Section 1.6.5, About the Paper Parameter Form view Section 1.11.1, About the Runtime Parameter Form Section 1.9.4, About Parameter Forms for Web reports

4.11.1 Using a pre-defined system parameter

To use a system parameter: 1. In the Object Navigator, expand the Data Model node, then expand the System Parameters node. 2. Double-click the properties icon for the desired parameter to display the Property Inspector. 3. Under the Parameter node, set the Initial Value property, if required. 4. To validate the parameters value at runtime, set the Validation Trigger property by clicking the ... button to display the PLSQL Editor and define the PLSQL to be triggered at runtime.

4.11.2 Creating a user parameter

To create a user parameter: Note: Oracle Reports Builder automatically creates a user parameter when you use a bind parameter reference in a query. 4-102 Oracle Reports Users Guide to Building Reports

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

Parameters node. 2. Click the Create button in the toolbar. 3. Double-click the properties icon for the new parameter to display the Property Inspector.

4. Under the General Information node, replace the Name property with the desired

parameter name.

5. Under the Parameter node, set the Initial Value and List of Values properties, if

required. 6. To validate the parameters value at runtime, set the Validation Trigger property by clicking property field to display the PLSQL Editor and define the PLSQL to be triggered at runtime.

4.11.3 Creating a list of values LOV for a parameter