Previous page

Next page

Report Designer - Adding Tables

Summary

Use the following procedure to add tables to a report.

Before you make any changes, make a note of the following:

  • The names of the fields you want to include and the table that they are in.
  • Which table you will join your new table to.
  • The primary fields that you will join by.

    Important: If you are editing a PayGlobal standard report, then model the existing report and edit the copy of the report (see Modelling an Existing Report).

Exercise 2

In this exercise, you will add the Work Area field to the TTLEAV001 - Annual Leave Accrued Units(ii) report.

You are on the View Report Groups | Leave Reports window.

  1. Right-click TTLEAV001 - Annual Leave Accrued Units (ii); this is the copy of the PGPRLEAV001 report that you created in the last exercise.
  2. Select Edit Report Definition from the menu.
  3. Click the Data tab.
  4. Click the Table icon on the data pipeline.

    Note: The data pipeline is a selection of tables from the database.

    Report Designer - Adding Tables

    The Query Designer window appears. You will use this window to add the Workarea table to the report.

    Adding tables 2

    Note: Tables that have been added to the data pipeline are displayed in the Selected Tables section. Always check that the table you require is not already present in Selected Tables.

  5. Scroll down the list of tables in the Available Tables section until you can see the WorkArea table.
  6. Double-click the WorkArea table.

    Alternatively, you can drag and drop the WorkArea table from the Available Tables section to the Selected Tables section.

    The Join Table window appears:

  7. In the Join Type drop-down list, click Left Outer.
  8. In the Join WorkArea Table with drop-down list, click the Employee table.
  9. In the WorkArea Fields section, click WorkAreaCode.
  10. In the Employee Fields section, click WorkAreaCode.

    You have selected two fields to join by, so the Add button is now active.

  11. Click Add.

    The join is created in the Joined Fields section.

    Adding Tables 3

    Refer to the following table for more information about the Join Table settings.

    Section / Button

    Details

    Join Type

    The format that the tables will be joined together. You should use either "Inner" or "Left Outer" joins.

    An Inner Join will only return rows where there is a direct link between the two tables. For example, if you join the Dim1 table to the Employee table and run the report, it will only return results for the employees who have the Dim1 field populated in their employee record.
    A Left Outer Join will return all rows from the primary table whether or not there is a corresponding value in the secondary table. In the above example the report would return all employees whether or not they had the Dim1 field populated in their employee record.

    Join x Table with

    Select the table that you want to join to. PayGlobal defaults to the last table that was joined to the report.

    x Fields (Left side)

    The list of fields in the new table. Select the field that you want to use as a primary field to join by.

    y Fields (Right side)

    The list of fields in the table that you want to join your new table to. Match the field from the list with your selection from the new table on the left.

    Note: Only use fields that will correspond directly between the two tables. For example, never use the Notes and the Description fields to join tables together, as they will most certainly be different.

    Joined Fields

    Displays the fields that have been joined. By default joins are created between all the common fields in the new table and the last table joined to the report.

    Add button

    This button is active when you select two fields to act as a join. Click the Add button to add the join to the Joined Fields area below.

    Remove button

    If there are joins in the Joined Fields area that you do not want, then select the join and click the Remove button. To select multiple joins, hold the Shift key down and click a range of joins.

    Click OK.

    You are returned to the Query Designer window. The new table is now listed in the Selected Tables section.

  12. Click the Fields tab.

    Use this tab page to add fields that you require. The selected fields for each table on the Tables tab are displayed in the Selected Fields section.

    To add a field to the Selected Fields section, double-click the field in the Available Fields section. Alternatively, you can drag and drop the field from Available Fields to Selected Fields.

  13. Click OK to save your changes to the data pipeline.
  14. Close the PayGlobal Reporting Engine window.

    A Confirm message appears:

    Do you want to save these changes as report "[path]\[report.RTM]"

  15. Click Yes.

Previous page

Next page