Examples

Now that you know the basics, here are a few examples of report modifications. The important part of these instructions is the process, which you may apply to any report.

For the first example, let's say you want to modify the Objects Summary report to include more information. The default report includes these fields: Catalog (O, P, A, L), Object ID, Object Name, Description, Condition, Status, and Home Location. If you want to remove the fields Condition and Status and add the fields Other Name and Collection to the report, follow these steps.

Modifying Fields and Text

  1. From the Reports menu, select Objects from Report Types and click once on the report Objects Summary.
  2. From the Report Layout Options section, choose Custom Layout 1 or Custom Layout 2 and click on the Modify Selected Layout button. This will open the Report Designer screen.
  3. Now let's change the Condition field to Collection. To do this, double click on the field "Condition" which is in a box above the gray band labeled Detail. In the Report Expression screen, change the Expression from Condition to Collection and click OK.
    Change Expression
    image of changing the expression from condition to collection
  4. Next, you need to change the label for the field as it appears in the Page Header band. To make that change, select the Label tool from the Report Controls toolbar, click on the word "Condition," use backspace and/or delete on your keyboard, then type the text "Collection." Then click the Select Objects tool to complete the change.
  5. Now, to make more room for the Collection field, let's remove the Status field. First click on the word "Status" in the Page Header band and press the Delete key on your keyboard. Then click on the field status in the box below in the Detail band and press the Delete key again.
  6. With the extra space available to the right, you can expand the width of the Collection field to accommodate longer entries. To do this, first click on the Collection field box in the Detail band. When it is selected, you will notice that the box has eight small dots, one each on the four corners and in the center of each side.

    image of the report designer screen with the collection field small

    To increase the width of the field, point the mouse to the center dot on the vertical right edge of the field. You will see your mouse cursor change to a vertical line with arrows pointing to the left and right. Press and hold the left mouse button while you drag to the right. When it reaches the desired width, release the mouse button, seen below.

    image of the report designer screen with the collection field larger
  7. The last step is to add the Other Name field. We want to have the Other Name print in the left column of the report, below the Object Name. To do this, double click on the field cat,objectid;objname in the Detail band. In the Expression field, after "objname," add a semi-colon and the word othername. When you print the report, you will see the catalog, a space, the Object ID, a carriage return, the Object Name field, a carriage return, and the Other Name field.

    Expression field
    image of the Report Expression screen
  8. Since there is not much space in the Page Header to add the words "Other Name," select the Label tool, click on the text "Catalog/Objectid/Objname" just after the "e" and add an "s." This will change the field label to "Catalog/Objectid/Objnames."
  9. Finally, save your changes by selecting Close from the File menu and answering Yes when asked, "Do you want to save changes to report?"

Now you can run the modified report from the Reports menu. Be sure that the report is set to the Custom Layout you selected, under Report Layout Options. You can narrow the records to include by selected fields, sort the results, and preview or print the report.

Modified Objects Summary report
Image of the modified Objects Summary report

Adding Images Attached to Catalog Records

With PastPerfect it is also possible to include images on a report. In this example, we will add the image of each item to the Collection List with Descriptions report.

  1. First, open the design screen by selecting Reports | All 4 Catalogs, and Collection List with Descriptions. Select a Custom Layout, then click Modify Selected Layout.
  2. Let's place the image on the left of the report just below the alltrim(descrip) field box. You will need to increase the height of the Detail band to accommodate the image. Click on the gray Detail band and drag it down to make the space. Then select the Picture/OLE tool on the Report Controls toolbar and move your cursor to the blank area where you want to place the image. You will notice your cursor is a plus sign. Click and hold your mouse button down and draw a box.
  3. As soon as you release your mouse, the Report Picture screen will open, which allows you to specify the filename of the digital image. Since we want to add images that have been attached to PastPerfect records, we will use a specific expression. In this case the entry would be as follows:

    printimage(alltrim(imagedir)+alltrim(imagefile))

    Be sure to select Scale picture, retain shape as shown below.

    Report Picture screen
    Image of the Report Picture screen
  4. You will also need to use the Print When function, in case there are records without images on the report. Click the Print When button, then in the Print only when expression is true line, enter the following expression.

    !empty(imagefile) and file(alltrim(imagedir)+alltrim(imagefile))
  5. Click on OK to return to the Report Picture screen. Please be sure the image is set to the Object Position Float. Click OK to return to the design screen. You should now see a gray box with an "X" on the screen where the image will be placed. You may need to adjust its size by clicking on the selection dots on the edges of the image and dragging one of the corners.
    Report layout with image
    Image of the Report Designer screen with an image added to the report
  6. This report has alternating gray and white backgrounds for records. You will need to expand the gray rectangle that exists behind the field boxes so that it encompasses the image box you added. Click on the gray rectangle just beneath the field boxes to select it. Then left click on the selection dot in the center of the bottom edge. When your mouse is in the right place, you will see arrows pointing up and down. Hold your left mouse button down and slide the bottom of the gray rectangle down.
  7. Using your mouse, drag the Detail band up so it is just underneath the gray background rectangle.
    image of the report designer screen
  8. From the File menu, choose the Close option and answer Yes when asked, "Do you want to save changes to report?" Be sure that the report is set to the Custom Layout you selected under Report Layout Options (Step 1).
    Preview of modified Collection List with Descriptions report
    Preview of the Modified Collection List with Descriptions report

Adding a Logo Image

You may want to add your organization's logo to the Title or Page Header band of reports. Here are the steps for adding a logo image located on your hard drive to the Deed of Gift report.

  1. From the Reports menu, select Accession from Report Types and click once on the report Deed of Gift.
  2. From the Report Layout Options section, choose Custom Layout 1 or Custom Layout 2 and click on the Modify Selected Layout button. This will open the Report Designer screen.
  3. Enlarge the Report Designer screen to full size by clicking on the Windows Maximize button in the upper right corner. This is the center button between Minimize and the X for Close.
  4. Left click on the Picture/OLE Bound Control tool in the Report Controls toolbar and move your mouse to where you want the logo. Your cursor will be a plus sign. Holding your left mouse button down, drag your mouse to start drawing a box. As soon as you release your mouse, you will see a new window, the Report Picture screen.
  5. Use the Browse button (button with three dots) to the right of the File field to get to the Open screen where you can navigate to the logo image on your hard drive. Locate the Image, then select it and click OK.
    Report Picture screen
    image of the report picture screen
  6. Choose Scale picture, retain shape at the Report Picture screen to keep your desired image size and retain the image's proper proportions.
  7. Click OK to exit the Report Picture screen. You should see your logo image. You may enlarge or shrink the image using one of the selection dots at the corners.
  8. From the File menu, choose the Close option and answer Yes when asked, "Do you want to save changes to report?" Be sure that the report is set to the Custom Layout you selected under Report Layout Options. The figure below is a preview of the report with the logo image added.
    Preview of report with logo image
    image of the modified report with a logo

Data Grouping

By grouping records on your report, you can view certain objects or contacts together as a subgroup and perform calculations on the subgroups' fields. Let's say that you want to find the total number of photographs kept in each storage box to estimate the number of acid free photograph boxes you need to order as you process the collection in the coming year. To do this, we will first create a simple Photos Report Maker report, then modify its layout to group by the field Home/Container, which is the sixth location field. For detailed information on creating Report Maker reports, please see Chapter 18 - Report Maker.

  1. Choose Report Maker from the Main Menu.
  2. Choose the Photos Report Type and click Create New Report.
  3. Enter a Report Name, such as Photos Box Count, complete the other fields as needed and click Next.
  4. In the Build Filter Statement screen, select the field Object ID from the drop-down menu.
  5. From the Condition drop-down menu, select Is not empty, click Add to Statement, then click Next.
  6. At the Fields to Include screen, double click on the Object ID field from the list on the left. It will be added to the Fields to Include on Report. Also select the Home/Container field. Click Next.
  7. At the Select Sort Order Fields screen, choose to sort by the Home/Container field. Double click to move the field to the Fields to Sort by column. Click Next, then click OK.
  8. Exit from the Report Output Options screen. When asked if you want to save this report, click Yes. Then close out of Report Maker Reports.
  9. From the Main Menu, choose Reports, then the Photos Report Type.
  10. Click once on your Report Maker report *Photos Box Count. Select Custom Layout 1 or Custom Layout 2 and click Modify Selected Layout.
  11. Maximize the Report Designer screen, then click the Report drop-down menu and choose Data Grouping.
  12. In the first box (with opposing arrows to its left), seen below, type the following and click OK:  locfield6
    Data Grouping screen
    image of the Report Designer screen with the Data Grouping screen with locfield6 filled in
  13. You will see two new bands - Group Header 1: locfield6 and Group Footer 1: locfield6. Pull the Group Header band down to accommodate a field box.
  14. Using your mouse, move the locfield6 field box into the Group Header band, along the left side. You may want to delete the Object ID label in the Page Header band. You can do this by selecting it with your mouse and using the Delete key on the keyboard. Then move the Home/Container label to the left, above the locfield6 field.
  15. Pull the Group Footer band down to accommodate a field. Using your mouse, move the objectid field box from the Detail band to the Group Footer band, along the left side.
    Report Designer screen
    Image of the Report Designer screen
  16. Double click on the objectid field box and click Calculations. Choose Count and click OK twice to get back to the Report Designer screen.
  17. Delete the gray rectangle in the Detail band and pull that band up against the Group Header.
  18. Click the File menu and choose Close. Be sure to save your changes. When you run and preview or print the report you will see a report with the box names and the number of items in each box.
    Preview of Photos Box Count report
    image of the Preview of the Photos Box Count report

TIP: If you modify a predefined report to include Data Grouping, when running the report, you must choose the field for your Sort Order that you used to group your data. Otherwise the data will not be grouped properly.

Creating a New Label Layout

The PastPerfect Reports screen can be used to print and design labels. Some examples of labels are mailing labels, catalog cards, spine labels, and barcode labels. Modifying labels is similar to modifying reports, with a few exceptions.

When you select a label from the Reports menu and choose a Custom Layout, an extra button is available in Report Layout Options. This button is named Create New Label Layout and will allow you to select a label design from a list of standard Avery labels. By clicking this button, you erase any customization you previously added, and create a new blank label.

Here is an example of how to design a Contacts mailing label using a new label style. By default, Contacts Label Style #1 and Style #2 both use Avery labels #5160, which measure 1" x 2 5/8" and print in three columns on the sheet. We will modify Label Style #2 to print on Avery labels #5163, which are 2" x 4" and print in two columns.

  1. First, select Contacts and Contacts Labels Style #2 from the Reports menu. Then click on Custom Layout 1 or Custom Layout 2.
  2. So that you will not have to re-create the fields on the new label, you can open the old design, select the fields and use the cut and paste tools to transfer the fields. To do this, click on Modify Selected Layout to display the Label Designer screen. Click on Edit | Select All, then Edit | Copy. This will put the fields in the Windows Clipboard. Click on File | Close to return to the previous screen. It is not necessary to save the changes.
  3. Now, click the Create New Label Layout button. When asked if you want to erase the custom label and start a new one, click Yes. You will be presented with a list of label styles and their associated Avery numbers. Select Avery #5163 and click OK.
    image of the Select a New Label Layout screen
  4. The new blank label design screen will open. Make sure that the gray Detail band is set to 2" and the label width is 4". Click on Edit | Paste to transfer the fields from the Windows Clipboard to the label. You will probably need to rearrange the fields to fit this larger label.
    New Label selection screen
    image of the New Label selection screen
  5. Finally, select File | Close and save your changes. Now when you use the custom layout selected for Contacts Label Style #2 you will get the new layout.