Move the SELECT Statements Into Packages Move the Packages Into a Library

Building a Paper Report with REF CURSORs 41-15

13. Choose Program Compile All.

14. Click OK to close the Compile window.

15. Click the Run Paper Layout button in the toolbar to run the report and view it in the Paper Design view. 16. Save the report as ref_68_your_initials.rdf.

41.10 Summary

Congratulations You have finished the REF CURSOR query sample report. You now know how to: ■ create package specs that define REF CURSORs. ■ create REF CURSOR queries. ■ create data links between REF CURSOR queries. ■ create summaries to describe data. ■ create a report layout. ■ move SELECT statements into packages. ■ move packages into a PLSQL library. For more information on any of the wizards, views, or properties used in this example, refer to the Oracle Reports online Help, which is available in Oracle Reports Builder or hosted on the Oracle Technology Network OTN, as described in Section 4.1.1, Using the Oracle Reports online Help . 41-16 Oracle Reports Users Guide to Building Reports Building a Simple Parameter Form for a JSP-based Web Report 42-1 42 Building a Simple Parameter Form for a JSP-based Web Report In this chapter, you will learn about JSP-based Web reports that include a simple Parameter Form. To build a Parameter Form for a paper report, refer to the Oracle Reports online Help. By following the steps in this chapter, you can generate the report output shown in Figure 42–1 and Figure 42–2 . Figure 42–1 JSP Parameter Form Note: The JSP Parameter Form in this image enables the user to choose from a list of departments, connect to a database, then run a report based on the selected parameters. 42-2 Oracle Reports Users Guide to Building Reports Figure 42–2 JSP-based Web report based on a user parameter Concepts ■ In this example, you will build an HTML Parameter Form using JavaServer Pages JSPs for a JSP-based Web report. For conceptual information about JSPs and Parameter Forms for Web reports, refer to Section 2.2.1, About JavaServer Pages JSPs and servlets and Section 1.9.4, About Parameter Forms for Web reports . ■ This example shows you how to build a very simple Parameter Form. If this Parameter Form does not suit your needs, refer to a more advanced example on the Oracle Technology Network OTN: on the Oracle Reports page http:www.oracle.comtechnologyproductsreportsindex.html , click Getting Started to display the Getting Started with Oracle Reports home page. In the list of topic sections on the left, click Index. In the Collateral Type list, choose Examples, and click Search. In the list of examples that displays, click Building a JSP-based Web Report with a Parameter Form . Example Scenario In this example, you have an existing JSP-based Web report that shows a bar graph of employee salaries per department, as well as a tabular report that shows the employee details. Your customers want to see the employee information for a specific department at runtime, so that they do not have to read the data for all departments. Note: The JSP-based Web report in this image displays a graph and a tabular report based on the department selected in the JSP Parameter Form. To see how this report was built, refer to the Oracle Reports Tutorial.