Previous Topic Next topic Print topic


Creating Structure Files and Layouts

A structure file that contains layouts can contain one default layout, and one or more conditional layouts; both types of layout are optional.

Conditional layouts contain conditions that you can attach to any non-group field within the layout. A condition is a true or false statement queried against the value of the field. If all conditions in the layout are true for a particular record, the record is displayed using that layout. If not all of the conditions are true, the record uses the default layout (or another conditional layout).

For example, the tutorial in this section uses a staff data file, and configures one default layout ('employee'), and two conditional layouts ('executive' and 'manager'). Each conditional layout has a condition that queries the field that specifies staff type; depending on the value, the appropriate layout is used.

If you are using a structure file that does not contain a default layout, any records that cannot use a conditional layout from the structure file are displayed unformatted.

For records that could use more than one layout (that is, they match all conditions in more than one layout), the record uses the first layout possible, based on the order that the conditional layouts are displayed in the Selected Layouts pane.

Previous Topic Next topic Print topic