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.
Save your report,
.rdf as a JSP under the same name (
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\Tkbrowserto the default browser location. Ensure that the
BrowserPathkeys reflect the correct values. For example:
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/technology/products/reports/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.