Working with Parts

 <  Day Day Up  >  

Working with Parts

Layouts are made up of parts. Depending on your objectives, your layout may contain header and footer parts, a body part, one or more subsummary parts, and maybe even a leading or trailing grand summary. Every layout must contain at least one part.

Briefly, the purpose and some characteristics of each type of part are as follows :

  • Title Header ” Title headers are used when you need a header on the first page of a multi-page printout that differs from the header on subsequent pages. In Form view, a user sees only a title header while in Browse mode, but not in List or Table view.

  • Header ” Objects in the header part appear at the top of each page of a multi-page report (except the first when a title header is present). A header part remains fixed on screen in List or Table views, even when a user scrolls to see additional records. Fields placed in a header part can be modified; they always represent data in the currently active record.

  • Leading Grand Summary ” Typically used on report layouts, a leading grand summary appears between the header and any subsummary or body parts. Summary fields placed in this part aggregate across the entire found set.

    For more information about using summary fields and summary parts to create reports , see "Summarized Reports," p. 281 .


  • Body ” The body part is used to display record data. A data entry layout often consists of nothing other than a body part. Most every layout you create will have a body part.

  • Subsummary ” Subsummary parts are used primarily for displaying subtotals on reports. For a subsummary to display properly, the found set must be sorted by the same field as that on which the subsummary is based, and you must be in Preview mode. Subsummaries can be placed either above or below the body part, depending on whether you want the subtotals displayed before or after the data they summarize.

  • Trailing Grand Summary ” Similar to leading grand summaries, a trailing grand summary is typically found on report layouts and is used to display aggregate summaries. When printed, the trailing grand summary report appears directly following the body part and any trailing subsummaries.

  • Footer ” Objects in the footer appear on every page of a multi-page print out (except on the first page when a title footer is present). In List view, the footer remains fixed on the layout when a user scrolls through records.

  • Title Footer ” A title footer part is used when you want to display a different footer on the first page of a multi-page printout.

Adding and Ordering Parts

There are two ways of adding parts to a layout. The first is by clicking and dragging the Part button in the status area to the point where you want the new part to appear. You are prompted to select a part type when you let up the mouse. Although it is convenient , we discourage this method of adding new parts. New parts, except when added to the very bottom of the layout, always come at the expense of existing parts. That is, if you have a 50-pixel header followed by a 200-pixel body, and you attempt to add a subsummary between these parts, the body part shrinks by the size of the subsummary part. Moreover, fields that were in the body part may now be part of the subsummary part.

The other option for adding new parts, which we prefer in almost every circumstance, is to use the Part Setup dialog (shown in Figure 4.9), which can be found under the L ayouts menu. When parts are added with this tool, it's not at the expense of any existing part; the total height of the layout increases .

Figure 4.9. You can add, edit, delete, and reorder the parts on a layout from the Part Setup dialog.

graphics/04fig09.gif


The Part Setup dialog can also be used to reorder, edit, and delete parts. The only types of parts that can be reordered are the body and subsummary parts. To reorder these, click the arrow in front of the part name and drag it to the desired position. Other part types appear with a lock in front of them, indicating that they are fixed in a certain order by definition.

You can delete a part from a layout either by selecting it from the Part Setup dialog and clicking Delete, or by clicking the part label while in layout mode and pressing the Backspace or Delete key on your keyboard. Either way, when you delete a part, any objects contained in that part are also deleted.

Formatting a Part

You can configure a few attributes of parts directly from Layout mode itself. First, you can set a background color and/or fill pattern for a part by clicking on the part label, then selecting a color and/or fill pattern. (Control-clicking) [right+clicking] on the part label similarly pulls up a contextual menu with access to these attributes.

You can achieve much the same effect simply by drawing a large rectangle on the layout, sending it to the back, and locking it. Setting a background color for the part is preferred, though, because the color extends to the right and downward if the user expands the window beyond the boundaries of your rectangle.

TIP

For users with monitors set to higher resolutions than your database was designed for, consider adding a footer with a background color different from your body part so that users can visually see where the layout "ends" and size their windows appropriately.


You can also change a part's size. To do this, simply click on the dividing line between two parts and drag either up or down. When making a part smaller, you can remove whitespace from the part, but you are prevented from dragging through any objects in the part. Any expansion of a part increases the overall size of the part.

Holding down (Option) [Alt] as you resize a part changes the rules slightly. First, any expansion or contraction comes at the benefit or expense of the neighboring part; the overall length of the layout remains the same (except, of course, when lengthening the last part on the layout). Also, you can "run over" objects this way; an object that was in one part may end up belonging to another part after you've resized things. An object that ends up straddling two (or more) parts belongs to the part that contains its upper left-hand corner.

The Size palette can also be used to see and set a part's length. This is the best way to precisely set part lengths, especially when trying to duplicate complex layouts from one file to another. Click the part label to display that part's data in the Size palette.

For more information about the Size palette, see "Positioning Objects on a

 <  Day Day Up  >  


QUE CORPORATION - Using Filemaker pro X
QUE CORPORATION - Using Filemaker pro X
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 494

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net