centimeters to make room between the f_bottom and f_top fields.

30-6 Oracle Reports Users Guide to Building Reports

30.3 Modify the Web Source of Your JSP Report

Now that you have created your paper report layout, you will now learn how to take the same report and generate a JSP-based Web report that looks the same as your paper report. To modify your JSP-based Web report: 1. Save your report, aggregatereport_your_initials.rdf as a JSP under the same name aggregatereport_your_initials.jsp. 2. Click the Web Source button in the toolbar to display the Web Source view. In the Web Source, you need to change the column titles to match those of the paper report. 3. In the Web Source view, find the text: th rw:id id=HBbottom asArray=no class=OraColumnHeader Bottom th 4. Change the column header to Salary so that the line now looks like this: th rw:id id=HBbottom asArray=no class=OraColumnHeader Salary th 5. The next line of code indicates the header for the Top column. Delete the header text so that the line looks like this: th rw:id id=HBtop asArray=no class=OraColumnHeader th 6. Change the other two columns for Ename and Deptno as desired. For example, we changed them to Name and Dept, like so: th rw:id id=HBename asArray=no class=OraColumnHeader Name th th rw:id id=HBdeptno asArray=no class=OraColumnHeader Dept th 7. Save your report as a JSP. 8. Click the Run Web Layout button in the toolbar to display your new JSP-based Web Report in your browser. The report should look something like this: Tip: Choose Edit Find and Replace, then type bottom in the Find what text box. Note: If Netscape 7.0 is your default browser, and the browser does not display, set the registry key HKEY_CURRENT_ USERS\Software\Oracle\Toolkit\Tkbrowser to the default browser location. Ensure that the BrowserName and the BrowserPath keys reflect the correct values. For example: BrowserName=Netscape 7; BrowserPath=C:\Program Files\Netscape\Netscape\Netscp.exe. Building a Report with Aggregate Data 30-7 Figure 30–7 Aggregating Data JSP-based Web Report The report displays, in Web format, the aggregate data you specified. Here, you can see which employees fall into the specified salary ranges.

30.4 Summary

Congratulations You have successfully built a report that aggregates data, for both paper and Web. You now know how to: ■ create a report definition that aggregates data. ■ modify your report for the Web. 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 . Note: For information on creating a Parameter Form for a JSP-based Web report, refer to the documented example on the Oracle Technology Network OTN: on the Oracle Reports page http:www.oracle.comtechnologyproductsreports index.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 . 30-8 Oracle Reports Users Guide to Building Reports