Using the Group presentation style

One of the report presentation styles, Group, is a shortcut to creating a grouped report. It generates a tabular report that has one group level and some other grouping properties defined. You can then further customize the report.

StepsTo create a basic grouped report using the Group presentation style:

  1. Select File>New from the menu bar.

    The New dialog box displays.

  2. Choose the Object tab page and the Group presentation style, and click OK.

  3. Choose a data source and define the data.

    You are prompted to define the grouping column(s).

  4. Drag the column(s) you want to group on from the Source Data box to the Columns box.

    In the following example, grouping will be by department, as specified by the dept_id column:

    Shown is the Set Report Definition dialog box.

    If you want to use an expression, you can define it when you have completed the wizard. See “Using an expression for a group”.

  5. Click Next.

    InfoMaker suggests a header based on your data source. For example, if your data comes from the Employee table, InfoMaker uses the name Employee in the suggested header.

  6. Specify the Page Header text.

  7. If you want a page break each time a grouping value changes, select the New Page On Group Break box.

  8. If you want page numbering to restart at 1 each time a grouping value changes, select the Reset Page Number On Group Break box and the New Page On Group Break box.

  9. Click Next.

  10. Select Color and Border settings and click Next.

  11. Review your specification and click Finish.

    The report displays with the basic grouping properties set.

This is an example of a Group style report:

The sample shows a Group style Data Window object with the title Employee Report dept _ i d Header groups that print the Department I D and a Trailer group dept _ i d that prints a total for department.

What InfoMaker does

As a result of your specifications, InfoMaker generates a tabular report and:

Here is the preceding report in the Preview view:

Shown is a preview of the report defined in the previous example.

Using an expression for a group

If you want to use an expression for one or more column names in a group, you can enter an expression as the Group Definition on the General page in the Properties view after you have finished using the Group wizard.

StepsTo use an expression for a group:

  1. Open the Properties view and select the group header band in the Design view.

  2. Click the ellipsis button next to the Group Definition box on the General page to open the Specify Group Columns dialog box.

  3. In the Columns box, double-click the column that you want to use in an expression.

    The Modify Expression dialog box opens. You can specify more than one grouping item expression for a group. A break occurs whenever the value concatenated from each column/expression changes.

What you can do

You can use any of the techniques available in a tabular report to modify and enhance the grouped report, such as moving controls, specifying display formats, and so on. In particular, see “Defining groups in an existing report” to learn more about the bands in a grouped report and how to add features especially suited for grouped reports (for example, add a second group level, define additional summary statistics, and so on).