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

<rw:objects>

The rw:objects tag encasulates the XML definition for the data model and paper layout. The rw:objects tag must appear within the rw:report tag body and before any other reports JSP tags. Only one rw:objects tag is allowed in a rw:report tag body.

When the report is executed in the server, the rw:objects tag applies report definitions. The Reports flow compiler is not started until the end rw:objects tag is processed. This assures that runtime structures are created for all the objects created in the rw:objects tag.

Syntax

<rw:objects id="xml_definitions">
   [XML Report definitions]
</rw:objects>

Attribute Value

Description

xml_definitions

A unique identifier in the page scope.

Example

This example shows the rw:objects tag with an XML report definition.

<%@ taglib uri="/WEB-INF/lib/reports_tld.jar" prefix="rw" %>
<rw:report id="myReport">
<rw:objects id="myObjects">
<report DTDVersion="9000010" name="myReport">
  <data>
    <dataSource name="Q_1">
      <select>
         SELECT ALL EMPLOYEES.EMPLOYEE_ID
           ,EMPLOYEES.FIRST_NAME||','|| EMPLOYEES.LAST_NAME EMP_NAME
           ,EMPLOYEES.HIRE_DATE
           ,EMPLOYEES.SALARY
           ,EMPLOYEES.COMMISSION_PCT 
           ,EMPLOYEES_A1.EMPLOYEE_ID
           ,EMPLOYEES_A1.FIRST_NAME||','|| EMPLOYEES_A1.LAST_NAME MGR_NAME
         FROM EMPLOYEES, EMPLOYEES EMPLOYEES_A1
         WHERE (EMPLOYEES.MANAGER_ID = EMPLOYEES_A1.EMPLOYEE_ID)
      </select>
      <group name="G_MGR_NAME">
        <dataItem name="MGR_NAME"/>
        <summary name="SumSALARYPerMGR_NAME" source="SALARY" function="sum"
         reset="G_MGR_NAME" compute="report">
        </summary>
        <summary name="TotalSALARYPerMGR_NAME" source="SALARY"
         function="percentOfTotal" reset="G_MGR_NAME" compute="report">
        </summary>
      </group>
      <group name="G_EMP_NAME">
        <dataItem name="EMP_NAME"/>
        <dataItem name="EMPLOYEE_ID"/>
        <dataItem name="HIRE_DATE"/>
        <dataItem name="SALARY"/>
        <dataItem name="COMMISSION_PCT"/>
        <dataItem name="EMPLOYEE_ID1"/>
        <summary name="TotalSALARYPerEMPLOYEE_ID" source="SALARY"
         function="percentOfTotal" reset="G_EMP_NAME" compute="G_MGR_NAME">
        </summary>
      </group>
    </dataSource>
    <summary name="SumSALARYPerReport" source="SALARY" function="sum"
     reset="report" compute="report">
    </summary>
  </data>
</report>
</rw:objects>

<!-- Start HTML-->
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>

See also

Oracle Reports JSP tags

About JSP tags

About JavaServer Pages and servlets