Manipulating Data Components
You can manipulate data components, which refer to crosstabs, tables, banded objects, charts and geographic maps, in Page Report Studio. However for the data components created in Logi JReport Designer, to perform some of the manipulation actions requires that the data fields used by the components can be converted to corresponding view elements. The actions include:
- Converting between charts and crosstabs
- Modifying the chart definition
- Adding and converting columns, and aggregating on detail columns in tables
In addition, a Logi JReport Live license for Logi JReport Server is required in order to use the features involving business view or changes of report template. If you do not have the license, contact your Jinfonet Software account manager to obtain it.
The following shows manipulating on specific data components in detail. Most of the manipulations require selecting the component first. To select a component, select anywhere in the component, when the icon appears at its upper left corner, select the icon.
Below is a list of the sections covered in this topic:
- Manipulating a Crosstab
- Manipulating a Table
- Manipulating a Chart
- Manipulating a Banded Object
- Manipulating Geographic Map Group Markers
Manipulating a Crosstab
- Changing the group index in a crosstab
The group index in a crosstab can be modified, namely, you can move a group to a higher or lower level. This operation can be performed on crosstabs containing two or more groups. To do this, you can simply drag a group 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:
- Select Menu > Report > Rotate Crosstab.
- Select the Rotate button on the toolbar.
- Right-select the icon of the crosstab and select Rotate from the shortcut menu.
- Adjusting the width of crosstab fields according to the contents
When the contents in the field of a crosstab need more space to completely display, you can adjust the width of the field according to its contents. To achieve it, first select the field, then right-click on it and select Autofit from the shortcut menu. - Adding row/column headers by dragging
To drag a group field into a crosstab to become a column header, drag it from the Resource View panel and then move the mouse pointer to a border of a column header until a highlighted horizontal line appears, then release the mouse.- When the crosstab has no column/row/summary labels, the new column header will be directly placed where the highlighted line lies.
- When you have specified any labels to label the columns/rows/summaries in the crosstab using wizard, the Insert Column dialog appears. You can specify a label to label the new column header if necessary. Select OK and the new column header will be placed where the highlighted line lies.
To drag a group field into a crosstab to become a row header, drag it from the Resource View panel and then move the mouse pointer to a border of the row header until a highlighted vertical line appears, then release the mouse.
- When the crosstab has no column/row/summary labels, the new row header will be directly placed where the highlighted line lies.
- When you have specified any labels to label the columns/rows/summaries in the crosstab using wizard, the Insert Row dialog appears. You can specify a label to label the new row header if necessary. Select OK and the new column header will be placed where the highlighted line lies.
- Inserting aggregate fields by dragging
You can drag and drop fields (detail fields, aggregation fields, and dynamic formulas/aggregations) from the Resource View panel to a crosstab to add them as aggregate fields to summarize data in the crosstab. To do this, in the Resource View panel, drag the required field and move the mouse pointer above or under the desired subtotal or grand total cell until a highlighted horizontal line appears, then release the mouse.- If the selected field has predefined aggregate function,
- When the crosstab has no column/row/summary labels, the field is inserted into the specified position directly.
- When you have specified any labels to label the columns/rows/summaries in the crosstab using wizard, the Insert Aggregation dialog appears. You can specify a label to label the newly created summaries if necessary. Select OK and the field is inserted to the specified position.
- If the selected field has no predefined aggregate function, the Insert Aggregation dialog appears. From the Aggregate Function drop-down list, select the function to summarize the field, then input a label to label the newly created summaries if necessary. Select OK and the field is inserted to the specified position. However, whether the label you specify would be generated depends on if you have added any labels to label the columns/rows/summaries in the crosstab using wizard. If no label is defined in the wizard, the label you add in the Insert Aggregation dialog will be ignored. After the field is inserted in the crosstab, you can switch the aggregate function it uses at anytime. To do this, right-click the field and select Switch Function from the shortcut menu, then choose a new function from the submenu.
- If the selected field has predefined aggregate function,
- Converting a crosstab into a chart
- Select anywhere in the crosstab, when the icon appears at its upper left corner, select the icon to select the crosstab, then do any of following:
- Right-select the icon and select To Chart from the shortcut menu.
- Select Menu > Report > To Chart.
The To Chart dialog appears.
- In the Chart Type tab, specify a suitable type for the chart. With a certain type specified, you can further define the chart as a combo chart by selecting <Add Combo Type> in the Chart Type Groups box.
- In the Display tab, the Resources box lists all the view elements used in the selected crosstab including group and aggregation objects. The chart can only be defined based on the view elements listed. Add a group object from the Resources box to the Category box, and so to the Series box, and aggregation objects to the Show Values box respectively.
- In the Style tab, set the style for the chart as required.
If the crosstab is in a banded object, by default, the chart converted from the crosstab will take on the style of the banded object. If you want to apply another style to the chart, uncheck the Inherit Style option and choose the desired style in the Style box. However, when there is only one style available, this style will be applied to the chart by default and the Style tab will be hidden from the dialog.
- Select the OK button to finish the conversion.
- Select anywhere in the crosstab, when the icon appears at its upper left corner, select the icon to select the crosstab, then do any of following:
- Expanding/Collapsing a crosstab
For a crosstab created in Logi JReport Designer, if it has more than one row/column group level, you can specify whether or not to enable the crosstab to be expanded in Page Report Studio, and set the default expanding/collapsing state of groups in outer levels. For details, see "Expanding/Collapsing a Crosstab" in the Logi 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.The above description is for a vertical table. With regard to a horizontal table, you can do the same actions on its row headers.
- Adjusting grouping order in a table
A table may contain several group levels. The order of the group levels can also be adjusted. To do this, drag a group field value to the required position until a blue line appears. - 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 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. - Showing table columns
You can specify which columns will be shown in a table. To do this, right-click the icon of the table, then on the shortcut menu, check the names of the columns you want to show from the Show Column submenu. - Adjusting the width of table columns according to contents
When the contents in cells of a table column need more space to completely display, you can adjust the width of the table column according to the contents. To do this, right-click the cell of the column in the table header, then select Autofit from the shortcut menu. - Changing group direction
You can make the group headers that are placed horizontally in a table to be displayed vertically. To do this, right-click the group header row and select Vertical to Detail from the shortcut menu. In addition, if the first column of a table is group column, you can specify to place the group column horizontally in a table. To do this, right-click the cell of the group column in the table header, and select Horizontal to Detail from the shortcut menu. - 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:- Select Menu> Report > Rotate Table.
- Select the Rotate button on the toolbar.
- Right-select the icon of the table and select Rotate from the shortcut menu.
- Inserting table columns
You can insert a new column in a table and it could be a common column, detail column, summary column, or group column.- To insert a common column into a table:
- Right-select any cell in the table header, or right-click the icon of the table.
- On the shortcut menu, select Insert > Common Column.
- To insert a detail or summary column into a table:
- Right-select any cell in the table header, or right-click the icon of the table, then select Insert > Detail Column/Summary Column from the shortcut menu.
- In the corresponding insert column dialog, specify the resource you want to use for the new column, then select OK.
- To insert a group column into a table:
- Right-select any cell in the table header, or right-click the icon of the table, then select Insert > Group Column from the shortcut menu. The Insert Group Column dialog appears.
- Select the group object you want to use for the new group column from the Resources box and select to add it as the group by field, then specify the sorting direction of the group in the Sort column.
- Specify the positions of the group by fields: Group Above, Group Left Above, or Group Left.
- Repeat the above steps to add more groups if required.
- Select OK to insert the columns.
The next time when you open the Insert Group Column dialog to add more group columns, all the added group by fields will be listed in the dialog. You can choose to remove or edit them if required.
Note: If you right-click any cell in the table header and use its shortcut menu to insert a common, detail or summary column, the Insert Column dialog will appear for you to specify the position of the column to be inserted, which can be before or after the column in which the cell you select on is, however, if you use the table shortcut menu to insert the column,
- If it is a common column, the column will be inserted as the last column in the table.
- If it is a detail/summary column, the column will be inserted after the last detail/summary column, or as the last column in the table when there is no detail/summary column.
- To insert a common column into a table:
- Converting table columns
You can convert a group column into a detail column, and vice versa.- To convert a group column into a detail column, select the cell of the group column in the table header, right-click and select Convert to Detail from the shortcut menu, then the conversion is done.
- To convert a detail column into a group column:
- Select the cell of the detail column you want to convert in the table header, right-click and select Convert to Group from the shortcut menu.
- In the Select Group Position dialog, specify the position for the newly converted group by field.
- Group Above
Specifies to place the group by field in its own row above the detail columns. - Group Left Above
Specifies to place the group by field in its own row and column above and left of the detail columns. - Group Left
Specifies to place the group by field in its own column left of the detail columns.
- Group Above
- Select OK to save the changes.
- Aggregating on a detail column
You can summarize the data in a detail column if required. To do this:- Select the cell of the detail column in the table header, right-click it and select Aggregate On from the shortcut menu. The Aggregate On dialog appears.
- From the Function drop-down list, specify a function to summarize the data.
- When done, select OK.
- If the table has groups, you will find data in each group level and the whole table are summarized respectively in the column.
- If the table has no groups, the summary will be based on the whole table.
When you finish summarizing a detail column, you will find a dynamic aggregation object is created at the same time which is given a default name Function_DetailFieldName in the Dynamic Resource > Aggregations list in the Resources View panel and you can use it again in the current report if required.
Manipulating a Chart
- Changing the chart type
- Right-select 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, select the Chat Type button on the toolbar, and then select a suitable subtype from the drop-down menu.
- 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:- Right-select 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.
- In the Chart Type tab of the Chart Definition dialog, specify the type for the chart.
- In the Display tab, change the group and aggregation object used by the chart.
- In the Style tab, modify the style for the chart as required. When there is only one style available, this style will be applied to the chart by default and the Style tab will be hidden from the dialog.
- Upon finishing, select OK to apply the modifications.
For details about how to define a chart, see Creating a Chart Report.
- Converting a chart into a crosstab
- Select anywhere in the chart, when the icon appears at its upper left corner, select the icon to select the chart, then do any of following:
- Right-select the icon or any part of the chart except for the legend and label, then select To Crosstab on the shortcut menu.
- Select Menu > Report > To Crosstab.
The To Crosstab dialog appears.
- In the Display tab,
select a group object in the Resources box and select to add it as a group field to the Columns or Rows box; select an aggregation object and select to add it as an aggregate field to the Summaries box. Repeat these to add more aggregate fields.
In the Display Name column, you can edit the display names of the added group and aggregate fields. By default the display names are blank and no labels will be created for the added fields to name the columns/rows/summaries in the generated crosstab. You can make Logi JReport automatically provide the display names to the added fields. To enable the feature, go to Logi JReport Console/Administration page > Profile > Customize Profile > Common tab, select Add Labels for Crosstab Rows and Columns and/or Add Labels for Crosstab Summaries as required. In the Sort column, specify a sort manner on a group field.
If you want to remove any group/aggregate field, select it and select . To adjust the order of the group/aggregate fields, select a group/aggregate field and select or .
- In the Style tab, apply a style to the crosstab as required.
If the chart is in a table or banded object, by default, the crosstab converted from the chart will take on the style of the table or banded object. If you want to apply another style to the crosstab, uncheck the Inherit Style option and choose the desired style in the Style box. However, when there is only one style available, this style will be applied to the crosstab by default and the Style tab will be hidden from the dialog.
- Select OK to finish the conversion.
Note: If the chart is created on a business view in Page Report Studio, it can contain additional values which are supported only in chart. Therefore when you convert a chart with additional values into crosstab, the additional values are not converted together with the chart.
- Select anywhere in the chart, when the icon appears at its upper left corner, select the icon to select the chart, then do any of following:
- Formatting chart elements
The elements (platform, paper, legend, axes and labels) in a chart can be formatted to suit your requirement.
- To format the platform/paper/legend of a chart, right-click on the chart and select Format Platform/Format Paper/Format Legend from the shortcut menu. In the displayed dialog, specify the settings as required. For details about the format options, refer to Format Platform dialog, Format Paper dialog and Format Legend dialog.
- To format an axis, right-click on the chart and select the axis from the Format Axis submenu. In the displayed dialog, specify the axis settings as required. For details about the format options, refer to Format Category(X) Axis dialog, Format Value(Y) Axis dialog and Format Value(Y2) Axis dialog.
- To format a label, right-click the label and select Format Label from the shortcut menu. In the Format Label dialog, set the properties according to your requirement.
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, right-click the icon of the banded object, then on the shortcut menu, select the item which indicates the panel name from the Show submenu. 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. - Hiding/Showing DBFields and labels in a banded object
The DBFields and their corresponding labels in a banded object can be hidden or shown. To do this, right-click the icon of the banded object, then on the shortcut menu, select the fields and labels you want to show from the Show Field submenu. For a field or label that is shown, it will be marked with a check mark, and vise verse. - Resetting data in a banded object
After sorting and filtering data in a banded object, you can right-click an object in the banded object and select the Reset item from the shortcut menu to reproduce the data of the banded object using the data cached in the data buffer. This will clear all sort and filter conditions from the banded object. - Expanding/Collapsing a group panel in a banded object
You can expand and collapse the group panels in a banded object created in Logi JReport Designer if it is enabled with the feature. For details, see "Managing the Data of a Banded Object" in the Logi JReport Designer User's Guide.
Manipulating Geographic Map Group Markers
- Going up/down on geographic map group markers
- For the group level that is higher than some other group levels in a geographic map component, point to its group marker, right-click it and select Go Down from the shortcut menu to jump one group level down.
- For the group level that is lower than some other group levels in a geographic map component, point to its group marker, right-click it and select Go Up from the shortcut menu to jump one group level up.
- Showing/Hiding geographic map group markers
By default, all visible group markers are shown. To hide them, right-click the geographic map (not the group markers) and select Hide Markers from the shortcut menu. If you want to show them again, right-click the geographic map and select Show Markers from the shortcut menu.