Viewing reports

See Also  

This lesson shows how to create a web page (view.jsp) that allows users to view a report they have selected in the contents.jsp page. The page is called when users click an item in the reports list ItemsGrid component on contents.jsp.

Note:    In this lesson, "the page" refers to view.jsp, which must be made active in your RAD workspace. For details on how to create new Faces JSP pages and add them to your web project, see Adding pages to your web project.

The lesson contains the following sections:

Adding a viewer

The view.jsp page will be used to render a report to users. The source of the report is obtained from the EnterpriseItem bean, which you added in Adding an individual report. To complete view.jsp, in the next procedure you add a ReportPageViewer component and set the report source.

To add a ReportPageViewer component
  1. In the Palette view, under the Crystal Reports Faces Components tab, click Report Page Viewer and drag a ReportPageViewer component onto the page in the visual designer.
  2. In this step, you are prompted to specify the Crystal report to be inserted into the web application.

  3. On the Use existing bean list, click enterpriseItem.reportSource.
  4. Click Finish.
  5. This step adds the component to the visual designer, where you can select it and configure attributes in the Properties view.

Summary

The view.jsp page renders a report to users. The page consists of an Identity component to identify users, an EnterpriseItem bean to represent a report, and a ReportPageViewer component to provide the user interface.

Note:    Make sure you save the view.jsp page.



Business Objects
http://www.businessobjects.com/
Support services
http://www.businessobjects.com/services/support/