A script-enabled browser is required for this page to function properly.

SRW.SET_FORMAT_ORDER built-in procedure

This procedure specifies the order in which the three sections of a report (Header, Main, and Trailer) are formatted.

Syntax

SRW.SET_FORMAT_ORDER (first_section, second_section, third_section);

Parameter

Description

first_section
second_section
third_section

Is SRW.HEADER_SECTION, SRW.MAIN_SECTION, SRW.TRAILER_SECTION specified in the order in which the report should be formatted

GUI access

You can also define the first_section, second_section, third_section parameters using the Reports Builder user interface:

Property Inspector

Set the Format Order of Sections property.

Usage notes

Restrictions

Examples

Example 1:

function AfterPForm return boolean is
  begin
    SRW.SET_FORMAT_ORDER(SRW.MAIN_SECTION, SRW.HEADER_SECTION, SRW.TRAILER_SECTION);
    return (TRUE);
  end;

Example 2:

This example produces the same result as the example above.


SRW.HEADER_SECTION = 0
SRW.MAIN_SECTION = 1
SRW.TRAILER_SECTION = 2
function AfterPForm return boolean is
  begin
    SRW.SET_FORMAT_ORDER(1, 0, 2);
    return (TRUE);
  end;

Note: The possible range of values that SRW_SET_FORMAT_ORDER takes are: 0, 1 and 2. If you specify values outside this range, Reports Builder issues an error message:

REP-1417: <trigger name>: Invalid integer argument passed to SRW.SWT_FORMAT_ORDER.

See also

About the Reports Builder built-in package (SRW)

SRW built-in package

About report sectioning and sections

"Building a Paper Report with a Simple Table of Contents and Index" and "Building a Paper Report with a Multilevel Table of Contents" chapters in the Oracle Reports Building Reports manual.