BackPrevious Page Next PageNext

Lesson 1: Creating a Web Report the Quick Start Way

In this lesson, we will create a web report the quick start way and learn about the visualization toolbar of Web Report Studio, which is also available in the traditional way.

This lesson contains the following tasks:

Task 1: Create a web report

  1. In the JReport Server Start Page, click Web Report in the Create category. Web Report Studio is then displayed in a new tab, prompting you to select data for the new report.
  2. In the Select Catalog dialog, expand the SampleReports folder, select the SampleReports.cat catalog and click OK.

    Select Report Data

  3. In the Select Data Source dialog, select WorldWideSalesBV in the Resources box. All the data fields contained in the business view are then displayed in the right box. Select Region, Sales Year, Total Sales, and Category and click OK.

    Select Report Data

    A web report containing a table is generated.

    Table

Task 2: Work with the visualization toolbar

Via the visualization toolbar (the toolbar displayed vertically) of Web Report Studio, you can conveniently convert a data component between the following types: table, crosstab or chart.

Firstly we will convert the table to a crosstab.

  1. Click Crosstab button on the visualization toolbar. The table is converted to a crosstab:

    Convert Table to Crosstab

The visualization toolbar also provides entry to the wizard of current data component. With the wizard you can redefine a data component, apply filter to narrow down data displayed in the component.

Next we will use the wizard to edit the data fields displayed in the crosstab.

  1. Click Wizard button on the visualization toolbar and the Crosstab Wizard is displayed.

    Crosstab Wizard

  2. In the Rows box of Data tab, select Sales Year and then click the X button at the top right of the box to remove it.

    Remove Row Field

  3. Remove Category from the Columns box in the same way.
  4. In the Resources box, browse to the Products category at the bottom and select Category, then click Add button to add it to the Rows box.

    Add Row Field

  5. Click OK to confirm the changes. A message dialog is displayed asking for your confirmation of the change. Click OK in the dialog.

    A new crosstab is created.

    Newly Defined Crosstab

Lastly we will convert the crosstab to a chart and save the web report.

  1. Click Bar Chart button on the visualization toolbar. The crosstab is converted to a bar chart as follows. You can also select other chart types on the toolbar.

    Convert Crosstab to Chart

  2. Click the Save button Save button on the toolbar, the Save As dialog is then displayed.
  3. From the Save In drop-down list, select the My Reports folder, input Product Sales in the File Name text box, then click OK to save the report to the server resource tree.

BackPrevious Page Next PageNext