Displaying report items

See Also  

As users navigate through folders, they will want to find reports and view them. You must add an interface to contents.jsp that can accommodate those actions.

In this tutorial, if reports are available to display within a folder, a list of the report names will be rendered to the user. A second ItemsGrid component, placed below the first ItemsGrid component on the page, can be used for that purpose. When users click on a report item in the grid, they will be redirected to another page, view.jsp, where the report is rendered for viewing.

To add a list of reports
  1. In the Palette view, under the Crystal Reports Faces Components tab, click Enterprise ItemsGrid and drag an ItemsGrid component onto the bottom of the page in the visual designer.
  2. In this step, you are prompted to specify the item source used in the ItemsGrid component.

    The EnterpriseItems bean represents the collection of reports to be displayed in the grid. You must create a new EnterpriseItems bean and bind it to the ItemsGrid component.

  3. Click New.
  4. You are prompted to choose an Identity bean. The EnterpriseItems bean has an identity property that must be initialized to an Identity bean that supplies the Enterprise session and user credentials.

  5. Choose the existing bean, identity, from the list.
  6. Click Custom, and in the field enter CrystalEnterprise.Report.
  7. This step ensures that only Crystal reports are displayed in the grid.

  8. Click Finish.
  9. In the Item Source field, select enterpriseItems2 (the new item source) and click Finish.
  10. This step adds the component to the visual designer, where you can select it and configure attributes in the Properties view.

  11. In the Properties view, set the id attribute to reportsList.


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