Now that you have created your paper report layout, you can 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:
Save your report, timeseries_
your_initials
.rdf
as a JSP under the same name (timeseries_
your_initials
.jsp
).
Click the Web Source button in the toolbar to display the Web Source view.
In the Web Source, you need to change the format mask to match that of the paper report.
In the Web Source view, find the text:
<td <rw:headers id="HFtotal" src="HBtotal, HBcustid, HFcustid"/> class="OraCellNumber"><rw:field id="F_total" src="total" nullValue=" "> F_ total </rw:field></td>
Add the tag formatMask="LNNNGNN0D00"
to the line, so that the line looks like this:
<td <rw:headers id="HFtotal" src="HBtotal, HBcustid, HFcustid"/>
class="OraCellNumber"><rw:field id="F_total" src="total"
formatMask="LNNNGNN0D00" nullValue=" "> F_total </rw:field></td>
Note:
The bold text is the new format mask tag that we have added to the Total field.
Change the format mask for the MAVG field. The resulting line in the Web Source should look like this:
<td <rw:headers id="HFmavg" src="HBmavg, HBcustid, HFcustid"/> class="OraCellNumber"><rw:field id="F_mavg" src="mavg" formatMask="LNNNGNN0D00" nullValue=" "> F_mavg </rw:field></td>
Save your report as a JSP.
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:
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
.
Figure 28-4 Time Series Calculations JSP-based Web Report
The report displays the total for each customer, as well as the average over the past four months.
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.com/technetwork/middleware/reports/overview/index.html
), navigate to Learn More and 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.