Creating an external PLSQL library Adding a program unit to an open library Editing a program unit in a PLSQL library Removing a program unit from a PLSQL library

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

See Section 4.9.6.4, Changing colors and patterns using PLSQL .

4.13.5 Creating or editing an external PLSQL library

This section provides procedures for the following tasks that you may perform as you create or edit an external PLSQL library: ■ Creating an external PLSQL library ■ Adding a program unit to an open library ■ Editing a program unit in a PLSQL library ■ Removing a program unit from a PLSQL library ■ Attaching a PLSQL library ■ Converting external PLSQL libraries See also Section 2.6.6, About external PLSQL libraries

4.13.5.1 Creating an external PLSQL library

To create an external PLSQL library:

1. In the Object Navigator, click the PLSQL Libraries node.

2. Click the Create button in the toolbar. 4-124 Oracle Reports Users Guide to Building Reports The newly created library initially named LIB_xxx is automatically opened. Once a library has been created, its contents can be modified by inserting or removing program units, or attaching other libraries.

4.13.5.2 Adding a program unit to an open library

To add a program unit to an open library:

1. Perform one of the following steps in the Object Navigator, depending on your

current state: ■ if the library is open, expand the library node ■ if the library is not currently open, click the PLSQL Libraries node and choose File Open to open the library

2. Under the Reports node, expand the Program Units node.

3. Drag the program unit you want to add to the library below the librarys Program

Units node.

4. Release the mouse button to insert a copy of the program unit in the library.

4.13.5.3 Editing a program unit in a PLSQL library

To edit a program unit in a PLSQL library:

1. In the Object Navigator, expand the PLSQL Libraries node, then the library node

for the program unit.

2. Under the librarys Program Units node, double-click the PLSQL Editor view

icon for the program unit you want to edit. 3. In the PLSQL Editor, edit the PLSQL for the program unit.

4.13.5.4 Removing a program unit from a PLSQL library

To remove a program unit from a PLSQL library:

1. In the Object Navigator, expand the PLSQL Libraries node, then the library node

for the program unit.

2. Under the open librarys Program Units node, click the library program unit you

want to delete. 3. Click the Delete button in the toolbar.

4. In the message box, click Yes.

4.13.5.5 Attaching a PLSQL library