Creating a template Defining default template attributes

How To... 4-107 onChange=this.value=this.value.toUpperCase Example: Default input to uppercase This example specifies that data input values default to uppercase upon entry in a Parameter Form field. 1. In the Paper Parameter Form view, create a Parameter Form field called PF_ DESTYPE. 2. Double-click the field object to display the Property Inspector, and set the following properties: ■ Under Parameter Form Field, set the Source property to DESFORMAT. ■ Under Web Settings, set the Additional Attributes HTML property to the following JavaScript event handler: onChange=this.value=this.value.toUpperCase At runtime, if the end user enters pdf as the destination format, the value will change to uppercase that is, PDF in the Runtime Parameter Form when running the report through the Web.

4.12 Define a Template

This section provides procedures for the following tasks that you may perform as you define a report template: ■ Creating a template ■ Defining default template attributes ■ Defining override template attributes ■ Applying a template to a report ■ Formatting the report title in a template ■ Modifying the color, pattern, or border of body objects in a template ■ Adding a template to the pre-defined templates list

4.12.1 Creating a template

To create a template:

1. In the Object Navigator, click the Templates node, then click the Create button in

the toolbar. 2. Define default template attributes for all report styles. 3. Optionally, define override template attributes for a selected report style. 4. To define system parameters, user parameters, report triggers, program units, and attached libraries for the template, double-click the associated nodes in the Object Navigator. See also Section 2.7.5, About the Template Editor Section 2.7.1, About templates Section 2.7.2, About template attributes 4-108 Oracle Reports Users Guide to Building Reports Section 2.7.3, About applying templates Section 2.7.4, About inheritance in templates

4.12.2 Defining default template attributes

To define default attributes for report objects in a template that applies to all report styles:

1. In the Object Navigator, expand the Templates node, then the Paper Layout node,

then the Section node, then the Body node, then the Default node. 2. To change default properties for the overall layout and spacing for report styles, double-click the properties icon next to the Default node to display the Property Inspector. 3. To change default properties for frames, field labelsheadings, fields, summary labels, and summaries totals, fully expand the Default node, then double-click the properties icons to display the Property Inspector.

4. In the Paper Layout view, select from the Report Style list to view the layout for

individual report styles.

5. To make further changes for the currently displayed report style, either return to

the Object Navigator, or double-click an object to display the Property Inspector. See also Section 2.7.1, About templates Section 2.7.2, About template attributes

4.12.3 Defining override template attributes