BackPrevious Page

Track 6: Integrating Reports and Dashboards

JReport reports and dashboards can be integrated into user applications by using URL or JSP (only available to page reports). You can then work on the integrated reports and dashboards as you do in JReport Server.

In this track, we will integrate some sample reports and dashboards in the /Public Reports/SampleReports folder into an application portal. The application portal allows users to easily request the integrated reports they need while accessing the applications they use. For this track, the application portal is built using frames. The links to the reports and dashboards are added in the application menu and appear on the same page that is the entry point to the application. However in most corporate settings there would be an application portal which would be used to launch the application and common reports. The techniques and code required to call the reports are identical whether it is a portal or a simple menu so the sample code can be utilized in either situation.

The following tasks are covered in the track:

Task 1: View the source for the application menu

Task 2: View the application menu

Task 1: View the source for the application menu

This track includes HTML which creates a menu on the left frame and displays the requested content in the right side frame.

  1. Create a folder jag in the directory <install_root>\public_html.
  2. Copy the contents in <install_root>\help\samples\JSPSamples\JinfonetGourmetJavaDemo to <install_root>\public_html\jag.
  3. Open index.htm in the jag directory in your favorite editor. This HTML file simply creates two frames, namely leftFrame which displays left.htm and rightFrameSet which by default has introduction.htm in <install_root>\public_html\jag\application displayed.
  4. Open left.htm in your editor. You will see it is a table with the menu items we want to present to the user.

Task 2: View the application menu

  1. Start JReport Server and open a web browser to http://localhost:8888/jag/index.htm. The page is something like this:

    Application Portal

  2. Click the links in the left frame to view the introduction and integrated reports and dashboards. The following details the sample each link is associated with and the JSP and HTML files that the samples call:

BackPrevious Page