### Manipulating components

You can manipulate components, which refer to crosstabs, tables, banded objects, charts and tabulars, in JReport Web as shown below. Note that, most of the manipulations require selecting the component first. To select a component, click anywhere in the component, when the icon appears at its upper left corner, click the icon.

#### Setting the number of records retrieved by report components

You can set the number of records that can be retrieved by all components in all reports of a report set. To do this, select a value to your liking (All or Top 50 to name a few) from the Max Records combo box on the Analysis toolbar. You can also directly input a positive integer here and press Enter to retrieve the corresponding records. Alternatively, you can click Menu > Report > Max Records to show the Max Records dialog, and then achieve the same goal.

#### Manipulating a crosstab

- Changing the dimension index in a crosstab
  The dimension index in a crosstab can be modified, namely, you can move a dimension to a higher or lower level. This operation can be performed on crosstab's containing two or more dimensions. To do this, you can simply drag a dimension object (row/column header) to the required destination till a blue line appears. You can also drag a column header to a row level and vice versa.
- Rotating a crosstab
  Columns and rows in a crosstab can be exchanged. This operation is called rotating a crosstab.

  To rotate a crosstab, first select it, and then do one of the following:

  - Click Menu > Report > Rotate Crosstab.
  - Click the Rotate button on the Analysis toolbar.
  - Right-click the icon of the crosstab and select Rotate from the shortcut menu.
- Expanding/Collapsing a crosstab
  For a crosstab, if it has more than one row/column group level, you can specify whether or not to enable the crosstab to be expanded in JReport Web, and set the default expanding/collapsing state of groups in outer level(s). For details, see Expanding/Collapsing a crosstab in the JReport Designer User's Guide.

#### Manipulating a table

- Adjusting order of columns in a table
  The order of columns in a table can be easily adjusted. To do this, drag a column header to the left or right boundary of another column header, when a blue line appears along the column boundary, release the mouse button, and you will see the order change. Repeat the steps to adjust the order so as to meet your requirements.

  The above description is for a vertical table. With regard to a horizontal table, you can do the same actions on its row headers.

- Rotating a table
  You can rotate a table to switch its appearance between the horizontal and vertical layout modes by doing one of the following:
  - Click Menu> Report > Rotate Table.
  - Click the Rotate button on the Analysis toolbar.
  - Right-click the icon of the table and select Rotate from the shortcut menu.
- Adjusting grouping order in a table
  A table may contain several group levels. The order of the group levels can also be adjusted in JReport Web. To do this, drag a group field value to the required position till a blue line appears.
- Showing table columns
  You can specify which column(s) will be shown in a table. To do this, right-click the table and check the column names on the sub menu of Show Column to show the columns.
- Hiding/Deleting table columns
  A table column (for a horizontal table, the "column" corresponds to a field row) can be hidden or removed. To do this, select the cell of the column in the table header (if the cell is entirely occupied by a field or label, you shall resize the field or label or the cell and then click the blank in the cell so as to select it) and right-click, then select Hide Column or Remove Column from the shortcut menu, and the column will be hidden or removed from the table.

#### Manipulating a banded object

- Hiding/Showing a panel in a banded object
  A panel in a banded object can be hidden or shown. To do this, select the banded object, then right-click the icon to show a shortcut menu and from the Show submenu, click the item which indicates the panel name. For a panel which is shown, the item is with a check mark, and vice versa. This operation is also applicable for hiding/showing a row in a table.

  For a banded panel, you can also right-click its blank part to show a shortcut menu and then select Hide to hide it.

- Expanding/Collapsing a group panel in a banded object
  Group panels in a banded object can also be expanded or collapsed. For details, see Managing the data of a banded object in the JReport Designer User's Guide.

#### Modifying the definition of a chart

You can modify the definition of a chart, including the chart type, data display, and style. To do this:

1. Right-click the icon of the chart or any part of the chart other than the legend and label to show a shortcut menu, and then select Format Chart from the shortcut menu to display the Chart Definition dialog.

   Note: In the event that the chart is built in JReport Designer, the Format Chart command will be available only when JReport Web can convert data fields used by the chart to corresponding cube elements. See the note in Analytic reporting for details.

2. In the Chart Type tab of the Chart Definition dialog, specify the type for the chart.
3. In the Display tab, change the dimension and measure object(s) used by the chart.
4. In the Style tab, modify the style for the chart as required.
5. Upon finishing, click OK to apply the modifications.

For details about how to modify the chart definition with the Chart Definition dialog, see Creating a chart report.

In addition, if you only want to change the chart type, no matter whether the chart is originally created in JReport Designer or JReport Web, you can achieve it by doing one of the following:

- Right-click the chart and on the shortcut menu, select the required type from the Chart Type submenu, which lists all the chart types and subtypes (the current one and the inapplicable subtypes are grayed out).
- Select the chart, click the Chat Type button on the Analysis toolbar, and then select a suitable subtype from the drop-down menu.

#### Splitting and merging cells in a tabular

Adjacent cells in a tabular which can form a rectangle may be merged into one cell.

To merge adjacent cells, select them one by one while holding the Ctrl key, then click Menu > Report > Merge, and these cells will be merged into one cell.

To split a cell:

1. Select the cell and click Menu > Report > Split.
2. In the Split dialog, specify the number of rows and columns.
3. Click OK and the cell will be split.