BackPrevious Page Next PageNext

Creating Reports

Creating page reports

Creating page report tabs

Creating web reports

Creating library components

Saving the data components in a web report as library components

Defining the configuration panel for library components

Before you can create reports in JReport Designer, you need to first create a catalog to connect with your database or open an exiting catalog.

In JReport Designer, the data resources that can be used to create different report types vary. Web reports and library components can only be created using business views. For page reports, the following data resources are supported: business views, queries, stored procedures, imported SQLs, imported APEs, user defined data sources and hierarchical data sources. In JReport Server, end users can create ad hoc web reports and page reports using business views via Web/Page Report Studio, and web reports and page reports created in Web/Page Report Studio can also be downloaded to JReport Designer for editing.

Creating page reports

Creating a page report will automatically create a report tab in the page report.

  1. Click Home > New > Page Report or File > New > Page Report. The Select Component for Page Report dialog appears.

    Select Component for Page Report dialog

  2. In the Report Title text box, specify the title of the first report tab in the page report.
  3. Decide the data resource type for the page report. A page report can be created from either query resources or business views. To use business view as the data resource for the page report, check the Create Using Business View checkbox.
  4. Select the component that is to be created in the first report tab in the page report.

Creating page report tabs

Before you can create report tabs, you first need to create a page report or open an existing page report. Then,

  1. Do either of the following:

    The Select Component for Page Report Tab dialog appears.

    Select Component for Page Report Tab dialog

  2. In the Report Title text box, specify the title of the report tab. If you do not want a title, remove the text in the text box. The title is not used as the report tab name. For how to name a report tab, click here.
  3. Select the component to add in the report tab.

    JReport provides you with the following component types to start a page report tab. The component types available for a report tab vary with the data resource type specified for the page report to which the report tab is to be added, which is determined at the time when the page report is created via the Create Using Business View option. Once defined, all the data components in the page report can only be created on the specified data resource type.

  4. Click OK.

    When selecting from query resources, if the given data resources are not what you want, you can click the first item in the corresponding resource node to create one. When a query is selected, you can click the Edit button to modify the query if required. Then a new dataset based on the selected data resource is created in the page report. If you want to use an existing dataset in the current page report for the page report tab, click the More Options button, then check the Existing Dataset radio button and select a dataset. You can click the Edit button to modify the selected dataset in the Dataset Editor if necessary, or click the <New Dataset...> item to create a new dataset in the page report to use. It is always better to use an existing dataset rather than create a new one. Even when the two datasets are based on the same query, JReport will still run the query separately for each dataset.

    Choose Data dialog

Creating web reports

  1. Click Home > New > Web Report or File > New > Web Report.
  2. A blank web report with a tabular of one cell is displayed. You can then split the tabular and insert components to the tabular cells. For details, see the corresponding topic about the specific component in the Components chapter.

Creating library components

  1. Click Home > New > Library Component or File > New > Library Component. The Select Component for Library Component dialog appears.

    Select Component for Library Component dialog

  2. Input a title for the library component in the Library Component Title text box.
  3. Select the type for the first data component in the library component.
  4. If Blank is selected, a blank library component is created; if a specific component type is selected, follow the wizard to create the data component in the library component. For details about how to define the data component, see the following topics:
  5. Insert more components, such as charts, crosstabs, tables, KPIs, web controls and so on into the library component if needed. For details, see the corresponding topic about the specific component in the Components chapter.

A library component in JReport Designer contains three parts:

Saving the data components in a web report as library components

JReport also supports saving the data components: tables, charts (including the KPI charts in KPIs), crosstabs, and geographic maps in a web report as library components, provided that all the objects in the data components can be supported by library components.

  1. Open the web report which contains the data components you want to save as library components.
  2. Right-click a data component and select Save as Library Component from the shortcut menu.
  3. In the Save As dialog, specify the name for the library component in the File Name text box.
  4. The library component file type (*.lc) is the only default value in the Files of Type drop-down list.
  5. Click Save. The Library Component Setting dialog appears.

    Library Component Setting dialog

  6. Specify the title, author and the author's e-mail address in the Title text box, Author text box and Author Email text box respectively.
  7. Click OK to save the selected data component as a library component with the specified name and title.
  8. Repeat the above steps to save another data components in the web report as library components.

Defining the configuration panel for library components

If you want the dashboard users to make use of the configuration panel at runtime, you need to configure the panel for each library component in JReport Designer.

To display the configuration panel of a library component, check the Display Configuration Panel checkbox on the top-right corner of the design area. The height of the configuration panel can be adjusted to the size of the contents, but its width is equal to the width of the library component and cannot be adjusted. You can resize its width only by resizing the width of the library component.

Configuration Panel of Library Component

The initial configuration panel contains a checkbox and two buttons.

You can insert labels and use web controls such as Text Field, Checkbox, List and Drop-down List in the configuration panel to filter or sort a library component, or change properties of objects in a library component.

When a library component contains parameters, the configuration panel will be automatically populated with all the parameters needed to run the library component, and web controls for the parameters will be created automatically in the panel. Therefore, the configuration panel can also be used to specify parameter values for a library component at runtime. The values of the parameters saved in the library component will be used as the default values.

Configuration Panel of Library Conponent for Specifying Parameter Values

BackPrevious Page Next PageNext