You can insert components into a web report via the Insert menu or via the Components panel on the left of the Web Report Studio window.
The following table lists the report areas that are valid targets for the various components.
Report Layout Area |
|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Component | Page Header/Footer | Report Body | Tabular Cell | Table Cell | |||||||
| Chart | Y | Y | Y | N | |||||||
| Crosstab | Y | Y | Y | N | |||||||
| Table | Y | Y | Y | N | |||||||
| Group object | Y | Y | Y | Y | |||||||
| Detail object | Y | Y | Y | Y | |||||||
| Aggregation object | N | Y | N | Y | |||||||
| Formula | Y | Y | Y | Y | |||||||
| Label | Y | Y | Y | Y | |||||||
| Image | Y | Y | Y | N | |||||||
| Multimedia object | Y | Y | Y | N | |||||||
| Web control | Y | Y | Y | N | |||||||
The following shows inserting a specific component in detail:
To insert a table into a web report:
to set the font properties for the title.
as the grouping criteria, then specify the sorting manner of each group in the Sort column. To adjust the order of the groups, select a group and click
or
.
as the summary field. For the Group Left table, you can use the Row and Column columns to control the position of the summary field in the table.See also Insert Table dialog for additional information about options in the dialog.
To insert a crosstab into a web report:
to set the font properties for the title.
and click
or
to add it to the Columns or Rows box as a group field. Then, in the Label column, edit the display name of the group object if required. This will label the row/column when the report is displayed. By default the Label column is blank and no label will be created for the row/column. In the Sort column, specify the sorting manner for the group field.
or a numeric detail object
and click
to add it to the Summaries box as an aggregate field. If a detail object is added, specify the aggregate function for it in the Aggregation column. In the Label column, edit the display name of the aggregate field as required.
. To adjust the order of the fields, select a field and click
or
.See also Insert Crosstab dialog for additional information about options in the dialog.
Normally, a chart displays values in a static way and you cannot change the values on it once it is created. However, JReport provides you with options to make the chart interactive and dynamic. For example, if your data source uses data that changes quickly over time such as stock market values, you can create a real time chart, so that the chart will update itself based on a defined interval by using the real time data from the data source. You can make a chart move at runtime based on the value changes of a motion field by creating a motion chart. In a motion chart, the chart is playable. You can start or stop the chart to play the dynamic trend of the motion field, control the moving speed of the chart, and if you create a bubble motion chart, you can even use a trail control to make the chart move showing a bubble or line trail.
In Web Report Studio, when you create a chart, you can choose to make it a common chart, an organization chart, a heat map, a real time chart, or a motion chart.
to set the font properties for the title. To create a combo chart, click
above the Primary Axis box and an additional chart type will be added. You can replace the additional chart type by selecting the required one from the chart type drop-down list. Repeat this to add more chart types. Check the Secondary Axis checkbox if you want to have the secondary axis (Y2) and define the chart types on the axis as required. To delete a type, select it and click
.
or an additional value
as the data of the type. You can add more than one data field to a chart type. Each added chart type shall have at least one data field.
If you select a bubble chart type, you need to specify the fields to be shown on the bubble X axis, Y axis and the value you want to show as the bubble radius in the Show Values box. Note that when you specify a value for the bubble X axis, this value will be displayed on the category axis instead of the one specified in the Category box. However, the value defined in the Category box will also be included in data calculation.
To add an additional value to a chart type:
beside the Show Values box. The Edit Additional Value dialog appears. To modify a constant/average value, select the value in the Show Values box, then click
. In the Edit Additional Value dialog, edit the value as required.
in the Resources box and add it to the Category or Series box, the data of which will be displayed on the corresponding axis.
above the Category or Series box, then define the order and condition in the Category/Series Options dialog.
To define a sort order and Select N condition on the category/series field:
If Based On is unchecked, the order of the first or last N category/series values will be based on what you specify in the Category/Series Order box of the dialog; if you check it, the order will be based on values of the summary field and the sort direction you specify in the drop-down lists next to Based On.
To create an organization chart:
Organization chart, also referred to as org chart, is a one-root-node-tree-structure diagram showing the ownership or reporting to relations among the nodes which are mapped to a specific entity.
to add the field for defining the entity.
to add the field for defining the ownership or reporting to relations among the entity members. For example, if the child field is Employee ID, the parent field can be the one about IDs showing which employ ID reports to which employ ID. Note that the parent field should use different one from the child field.
button and then adjust their positions and sizes in the node and the size of the node if required. Those added objects will be displayed in each node as the information about the entity members. Heat map is composed of rectangles marked by colors and sizes. The rectangles are grouped by group fields. Each rectangle represents a value of a group field or a combination of values of multiple group fields.
and
to adjust the order of the groups. To remove a group field, select it and click
.
above the Groups box. In the Group Options dialog, specify the order and condition in the same way you do to the category/series field. The summaries should match the groups. For example, if the groups level is A > B > C, the static summaries grouped by C can be inserted into the Summaries box, but the static summaries grouped by A, B or other fields cannot.
If no group is specified in the Groups box, you can insert any static summary. And its group-by field will be inserted into the Groups box automatically.
Real time chart is supported on singe bar, bench, line, and area chart types.
or group objects
of numeric type as the data of the type.
to be displayed on the category axis. If you want to define some sort order and Select N condition on the category field you specify, click
above the Category box, then define the order and condition in the Category Options dialog.Once a unique key is defined, each time when the real time chart automatically updates itself, duplicated data records will be filtered out based on the unique key. For instance, if you add the fields Country and Product ID as the unique key of a real time chart, when a record with the product ID 1 in USA has already been loaded into the chart, no more records of this product ID in USA will be added to the real time chart because they have the same unique key value.
Motion chart is supported on single chart of bar, bench and bubble types.
or additional values
as the data of the type.
If you select a bubble chart type, you need to specify the fields to be shown on the bubble X axis, Y axis and the value you want to show as the bubble radius in the Show Values box. Note that when you specify a value for the bubble X axis, this value will be displayed on the category axis instead of the one specified in the Category box. However, the value defined in the Category box will also be included in data calculation.
in the Resources box and add it to the Category or Series box, the data of which will be displayed on the corresponding axis.
above the Category or Series box, then define the order and condition in the Category/Series Options dialog.
of Integer, Date or Time type as the motion field. When the element is of the Date data type, you can define some special function for it by clicking the Special Function button. When a motion chart is created, you can use the motion control section to make the chart move. Click the play button and the chart will show its dynamic trend based on the value change of the motion field which is bound in the motion bar. To stop it, click the button again. You can also control its moving speed by dragging the slider between Slow and Fast on the speed control. For a bubble chart, you can control whether the chart will be moving in bubble or line trail.
See also:
To insert a label into a web report, locate the place in the report where you want to insert the label, then click Menu > Insert > Label, or drag Label from the Components panel to the destination. The label will then be inserted in the specified location.
To insert an image into a web report:
See also Insert Multimedia dialog for additional information about options in the dialog.
You can insert the following web controls into a web report: parameter control, parameter form control, filter control, and navigation control. For details, see Using web controls.
To insert a special field into a web report, do either of the following:
Note: When there are multiple data components in a web report, JReport will calculate the data and display the data components in an appropriate way to avoid missing data in the report as much as possible.