Creating a Web report Viewing the source code for a Web report Adding report data to an existing Web page HTML file

How To... 4-17

4.6.1 Creating a Web report

You can create a Web report in any of the following ways: ■ Create a report using the Report Wizard, see Section 4.5.1, Creating a report , choosing to create a report for both Web and paper, or Web only. ■ Insert a report in a Web page by adding report data, then adding a report block to a Web page, as described in Section 4.6.3, Adding report data to an existing Web page HTML file and Section 4.6.4, Adding a report block to a Web page . ■ Display the Web Source view and manually insert the Oracle Reports custom JSP tags see the Reference section of the Oracle Reports online Help. ■ Insert an existing report into an existing Web page, by displaying the Web Source view for both the report and the Web page, then copying and pasting the report block into the desired position in the Web page. ■ Prepare a paper-based report for the Web by adding hyperlinks to an existing report see Section 4.6.9, Preparing a paper-based report for the Web .

4.6.2 Viewing the source code for a Web report

To view the source code for a Web report, do any of the following: ■ In the Report Editor, click the Web Source button in the toolbar. ■ In the Object Navigator, double-click the view icon next to the Web Source node for the report to display the source code in the Web Source view. ■ Choose View Change View Web Source. See also Topic Oracle Reports JSP tags in the Reference section of the Oracle Reports online Help.

4.6.3 Adding report data to an existing Web page HTML file

To retrieve the data to be used to build a report to add to an existing Web page HTML file:

1. In the Object Navigator, choose File Open.

2. Navigate to your Web page HTML file, and click Open.

3. In the Object Navigator, find the report created when you opened the HTML file Oracle Reports Builder may give the report a default name, such as REP1, then double-click the view icon next to the Data Model node to display the Data Model view.

4. In the Data Model view, choose Insert Query to select data for the report using

the Data Wizard. After you click Finish, the data you have selected is available to your Web report. Caution: If you right-click the Data Model node, then choose Report Wizard to use the Report Wizard to select the data for a report, the report will overwrite all of the data in your existing Web page. 4-18 Oracle Reports Users Guide to Building Reports Next step See Section 4.6.4, Adding a report block to a Web page