BackPrevious Page Next PageNext

Inserting a Banded Object

Creating a banded object based on a business view

Creating a banded object based on a query resource

With the banded object wizard, it is easy to create banded objects in a report, however the wizard varies with the data resource type used for the banded object: business view or query resource.

A web report can only use business views. For a page report it can be created either based on query resources or business views, which is determined at the time when the page report is created by 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.

A banded object can be inserted in the report areas listed in Component placement. When a banded object is inserted into another banded object in a page report, you can set up data container link between the banded object and its parent.

Creating a banded object based on a business view

  1. Position the mouse pointer at the destination where you want to insert the banded object.
  2. Click Insert > Banded Object or Home > Insert > Banded Object.

    The Create Banded Object wizard appears, which contains a set of screens for helping you define a banded object easily. You can use the Back and Next buttons or click the screen name on the screen navigation bar to switch between the screens.

  3. In the Data screen, select the business view in the current catalog using which to create the banded object.

    Create Banded Object - Data

  4. In the Display screen, add data fields to display as detail fields in the banded object.

    Create Banded Object - Display

    The Resources box lists the group objects Group icon and detail objects Detail icon in the specified business view, as well as the dynamic formulas used as Group Dynamic Formula as Group icon and dynamic formulas used as Detail Dynamic Formula as Detail icon created for the business view in the current report. You can use them as detail fields in the banded object.

    To add a detail field, select a field in the Resources box, then click Add button or drag and drop it to the right box; to remove an unwanted detail field, select it and click Remove button or drag and drop it to the Resources box. You can make use of Move up button and Move down button to adjust the display order of the detail fields in the banded object. By default the display names of the added fields will be used to label the corresponding detail columns; to edit the label text for a detail column, click in the Display Name text box and enter a new one; if you want to automatically map the label text to the dynamic display name of the field at runtime, check the Auto Map Field Name checkbox in the text box. If needed, click the Sort Fields By button to specify in which manner to sort the detail values the same as you do for a table.

  5. In the Group screen, specify the criteria for grouping data in the banded object the same as you do for a table.

    Create Banded Object - Summary

  6. In the Summary screen, add summaries to calculate data in the banded object.

    Create Banded Object - Summary

    The Resources box lists the aggregation objects Aggregation icon in the specified business view, as well as the dynamic aggregations created for the business view in the current report. You can add them as summaries to calculate data in the banded object.

    To add a summary, in the right box select the group to which the summary will be applied (if you select Banded Object, it will be based on the whole business view), select a field in the Resources box and click Add button or drag and drop it to the right box. You can add several summaries for any group level, and if a summary is not required, select it and click Remove button or drag and drop it to the Resources box. To adjust the display order of the summaries in the current group or move a summary to another group, make use of Move Up button and Move Down button . The position of the summaries in the banded object is determined by the Position and Column options and cannot be changed: a summary added for the Banded Object level is placed in the intersection of the banded footer panel and the first two detail columns with its name label which is the display name of the field used for the summary by default; a summary added for a specific group is placed in the intersection of the group's footer panel and the first two detail columns with its name label.

  7. In the Filter screen, apply a filter to reduce the data displayed in the banded object. You can select a predefined filter of the specified business view from the Filter drop-down list to apply, or select User Defined in the list to define a new filter as required.

    Create Banded Object - Filter

  8. In the Style screen, specify the style of the banded object.

    Create Banded Object - Style

    When you have specified to insert the banded object into another banded object in a page report, by default the banded object will inherit its parent's style. If you want to apply another style to the banded object, uncheck the Inherit Style option and then select the required style from the Style box.

  9. Click Finish to insert the banded object.

    If you have selected a panel in another banded object as the banded object destination in a page report, after finishing the wizard you need to click the mouse button in the destination once again in order to insert the banded object there.

Besides using the wizard, you can also drag a blank banded object to the report.

  1. From the Basic category of the Components panel, drag Banded Object button to a destination in the report which allows the insertion of a banded object. A blank banded object is then created.
  2. All the business views used in the current report can be used as the data source of the banded object. To locate a business view, select the data component that uses the business view. The business view is then displayed in the Data panel.
  3. Drag the required view elements and dynamic resources from the Data panel into the banded panels.

Creating based on a query resource

  1. Position the mouse pointer at the destination where you want to insert the banded object.
  2. Click Insert > Banded Object or Home > Insert > Banded Object.

    The Create Banded Object wizard appears, which contains a set of screens for helping you define a banded object easily. You can use the Back and Next buttons or click the screen name on the screen navigation bar to switch between the screens.

  3. In the Data screen, select the data resource in the current catalog using which to create the banded object.

    Create Banded Object wizard - Data

    If the predefined data resources are not what you want, 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 to create the banded object, click the More Options button and then:

  4. In the Display screen, add data fields to display as detail fields in the banded object.

    Create Banded Object wizard - Display

    The Resources box lists all the DBFields in the specified data resource, as well as the formulas and parameters that are valid to these DBFields in the current catalog. You can use them as detail fields in the banded object.

    To add a detail field, select a field in the Resources box and click Add button or drag and drop it from the Resources box to the right box; to remove an unwanted detail field, select it and click Remove button or drag and drop it to the Resources box. You can make use of Move Up button and Move Down button to adjust the display order of the detail fields in the banded object. By default the display names of the added fields will be used to label the corresponding detail columns; to edit the label for a detail column, click in the Display Name text box and enter a new name. If needed, click the Sort Fields By button to specify in which manner to sort the detail values the same as you do for a table.

  5. In the Group screen, specify the criteria for grouping the data in the banded object the same as you do for a table.
  6. In the Summary screen, add summaries to calculate data in the banded object.

    Create Banded Object wizard - Summary

    The Resources box lists all the DBFields in the specified data resource, as well as the formulas that are valid to these DBFields in the current catalog. You can create summaries based on these fields in the banded object.

    To add a summary, in the right box, select the group to which the summary will be applied (if you select Banded Object, it will be based on the whole dataset), select a field in the Resources box and click Add button or drag and drop it to the right box, then specify the aggregate function as required. After the banded object is created, JReport will automatically give the summary proper name label to help you clarify the meaning of the number. From the Position and Column drop-down lists select the position of the summary: when a summary is added for the Banded Object level, you can place it and its name label in the intersection of the banded footer panel (Footer)/banded header panel (Header) and the first two detail columns (Detail)/a new summary column (Summary); for a summary added to a specific group, you can place it and its name label in the intersection of the group footer panel/group header panel and the first two detail columns/a new summary column. You can add several summaries for any group level and if a summary is not required, select it and click Remove button or drag and drop it to the Resources box. To adjust the display order of the summaries in the current group or move a summary to another group, make use of Move Up button and Move Down button.

    The summaries created from the Summary screen will be added to the current catalog as static summaries even when identical summaries already exist. Therefore, it is better not to create summaries here, instead you can add dynamic summaries to the catalog and drag and drop the dynamic summaries into the banded object after it is created.

  7. In the Filter screen, add filter conditions on the fields that have been added to the banded object to reduce the data. For how to define a filter, click here.

    Create Banded Object wizard - Filter

  8. In the Style screen, specify the layout and style of the banded object.

    Create Banded Object wizard - Style

    In the Grow Report box, specify whether to create a vertical banded object, horizontal banded object, or mailing label banded object. In the Style box select the style of the banded object. When you have specified to insert the banded object into another banded object, by default the banded object will inherit its parent's style. If you want to apply another style to the banded object, uncheck the Inherit Style option and then select the required style from the Style box.

  9. Click Finish to insert the banded object.

    If you have selected a panel in another banded object as the banded object destination, after finishing the wizard you need to click the mouse button in the destination once again in order to insert the banded object there.

Besides using the wizard, you can also drag a blank banded object to the report.

  1. From the Basic category of the Components panel, drag Banded Object button to a destination in the report which allows the insertion of a banded object. A blank banded object is then created.
  2. In the Data panel, select the dataset in the current page report with which you want to create the banded object from the dataset drop-down list, or select <Choose Data from...> from the list to create a new a dataset for the banded object.
  3. Drag the required data fields in the specified dataset from the Data panel into the banded panels.

Notes:

BackPrevious Page Next PageNext