Creating or editing a format trigger Creating or editing a group filter Creating or editing a formula column Creating a placeholder column

4-122 Oracle Reports Users Guide to Building Reports

2. In the Database Trigger Editor, choose a user name schema from the Table

Owner list.

3. Choose a table name from the Table list.

The Table list shows a list of table names owned by the user shown in the Table Owner field. If you select a user name other than your own in the Table Owner field, the Table list shows only the tables to which you have been granted access. 4. For views only To define an INSTEAD OF trigger for an object view, click the arrow next to Table to display a list and choose View. Then choose a view name from the View list.

5. Click New to create a new database trigger.

A unique trigger name with respect to other triggers in the same schema is automatically assigned to the new trigger in the Name list. You can modify the trigger name. The Name list displays a list of trigger names associated with the table or view shown in the Table or View field. The Name list displays only the names of the database triggers associated with the tables to which you have access.

6. After specifying the trigger options and action, click Save to compile the trigger.

See also Section 2.6.13.4, About database triggers

4.13.4 Creating or editing object-level PLSQL

This section provides procedures for the following tasks that you may perform as you create or edit object-level PLSQL: ■ Creating or editing a format trigger ■ Creating or editing a group filter ■ Creating or editing a formula column ■ Creating a placeholder column ■ Changing colors and patterns using PLSQL

4.13.4.1 Creating or editing a format trigger

To create or edit a format trigger using the Property Inspector: 1. In the Paper Design view, double-click the object for which you want to create or edit a format trigger to display the Property Inspector. 2. Under Advanced Layout, set the Format Trigger property by clicking the ... button to display the PLSQL Editor. 3. Define the PLSQL for the format trigger. To create or edit a format trigger using the Object Navigator:

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

that contains the object for which you want to create or edit a format trigger. 2. Double-click the PLSQL icon next to the object for which you want to create or edit a format trigger to display the PLSQL Editor. 3. Define the PLSQL for the format trigger. How To... 4-123

4.13.4.2 Creating or editing a group filter

To create or edit a group filter:

1. In the Data Model view, double-click the title bar of the group to display the

Property Inspector.

2. Scroll to the Group node.

3. To display the first n records for the group, set the Action Type property to First

and set the Number of Records property to n.

4. To display the last n records for the group, set the Action Type property to Last

and set the Number of Records property to n.

5. To create your own filter using PLSQL, set the Action Type property to PLSQL

and set the PLSQL Filter property by clicking ... to display the PLSQL Editor to define the PLSQL for the filter.

6. Set other properties as desired.

See also Section 2.6.9, About group filters

4.13.4.3 Creating or editing a formula column

See Section 4.8.10, Creating or editing a formula column .

4.13.4.4 Creating a placeholder column

See Section 4.8.12, Creating or editing a placeholder column .

4.13.4.5 Changing colors and patterns using PLSQL