Novell Home

Novell Connection Magazine Home

If you've been following this series, you're quickly becoming a database pro. You've learned the basics of just about everything Base offers. The last step is to throw all that data into a usable report that can be printed and used. This article will show you how to do just that.

The Scenario

Before we get started, let's review our scenario: You're the IT director for a company with several employees, and you have a lot of hardware to monitor. You're building an inventory database to help manage and track the printers, laptops, desktops, scanners, fax machines and other important equipment floating around the office. You've created at least one great form in which an intern or secretary can enter employee names and the products each employee is using, as well as all the pertinent data about those products. You've run a few queries—some simple, others more complex—and now you're ready to distribute the data in a report.

Static and Dynamic Reports

First decide what kind of report you want: static or dynamic. A static report uses—and will always use—the data you have right now; the data used will not change over time. For example, static reports are good for printing out a list of employees with their phone extensions and the departments in which they work.

A dynamic report accesses the original data source (a query or table) and updates the data each time you run the report. This kind of report is helpful in generating a list of inventory purchases, for example. You could run the report quarterly so new purchases are added to the list before distributing the updates. You could also use a dynamic report to print out a quarterly cost analysis: each quarter you would use the Dollars Spent by Employees query to run a report. Save each newly generated report, and at the end of the year you could see just how much was spent each quarter in each department. You could even create a new query that spits out the total dollar amount spent in all departments and run a quarterly report based on that.

Creating a Simple Report with the Wizard

For our purposes today, we'll start with a simple static report. First, note that a report can be based on only one table or query. If your report needs to include data from two or more different tables, first create a query to combine the fields, then use that query as the basis of your report. This means you might find yourself creating new queries or combining old queries to get the right information for your report. Here's how you'd create your first simple report:

  1. Open the database.
  2. Click the Reports icon in the left column.
  3. Choose Use Wizard to Create Report. A generic report will open in the background, with the Report Wizard window displaying on top.
  4. Our report is going to list the names, departments and phone extensions of each employee. We'll select the Basic Employee Details table from the Tables or Queries drop-down field.
  5. Select each field in the Available fields list that you would like to include in the report and use the arrow to move them to the Fields in Report list, then click Next.
  1. Here, you can rename the fields so the names are more specific or to add a space between the words in the label. Or you can simply leave the fields as they are. I usually make a few changes, though, so the generated report better serves the report readers. After changing the labels, click Next. Note that only the labels are changed, the field names in the original table or query remain the same.
  2. In this step, you can have Base group certain elements of your report. For example, it might be helpful to have the employee list grouped by departments. This way, I can quickly see all the employees in each department at a glance. In the Fields list, select Department and click the arrow button to move the field to the Groupings list. Click Next.
  3. Here, define how the report is sorted. Note the first Sort by field is automatically filled in with the Department field because that is how the report will be grouped. I want to sort the data within each grouping by Last Name, then First Name, so I select those options from the next two sorting fields. (See Figure 1.) Click Next.
  4. One nice feature is that you can move the Report Wizard window around on the screen to see how the report beneath it is taking shape. Don't worry if the numbers displayed on the report are all messed up at this point; they are simply a visual representation of how your report will appear. It will display your data accurately after you run the report. In this step, you can choose a template for your form. I usually move the Wizard over a little so I can see how the report looks in the background as I decide which template to use. For the most part, simple is best. For our sample, I chose to use borders in my data layout, to keep the default settings for headers and footers, and to change the report's orientation from landscape to portrait. (See Figure 2.) Click Next when finished.
  5. Name the report and indicate whether it is Static or Dynamic. If you choose Static, which this report is, you won’t have any more options. If you choose Dynamic, you can decide to immediately create the report or to modify it once finishing. Click Finish.
  6. Your report will be displayed on the screen. (See Figure 3.) Save it.
  7. Now, simply click the Export Directly as PDF button in the menu bar, save the PDF, and distribute as desired.
  8. Close the report, then save the entire database before closing it.


  • Figure 1

    In the Report Wizard you can choose a sorting order for the fields in your report. If you grouped any fields in your report, that field will automatically be the first element by which the report is sorted. Our sample report will be grouped and sorted by department and then sorted by the last and first names of each employee in each department.

  • Figure 2

    As you use the Report Wizard, your report with dummy numbers will display behind the Wizard window. You can select from a variety of templates and see how they will look in the report.

  • Figure 3

    Once finished with the Report Wizard, your simple, static report will look great and professional. Export it to a PDF, and its ready to be distributed.

  • Figure 4

    This is a PDF of one section in the Inventory by Department report. This dynamic report was run, saved as a PDF, and distributed. Later, the IT director noticed that one piece of inventory was missing from the list. He updated the database and ran the report again. He then saved the updated report as a PDF and redistributed it. The automatic update can be seen in Figure 5. Every time the database is updated, dynamic reports are also updated.

  • Figure 5

    This is a PDF of the same report shown in Figure 4, but it contains information that has been added to the database since the first report was run. The new data is circled.

  • Figure 6

    For dynamic reports, you simply want to select Date, not Date(fixed) when formatting the date on your report. This allows Base to automatically update the report with the current date every time it is run.

© 2015 Micro Focus