Displaying a record in a text or print form

The Record template, found in the Templates drawer of the Palette view, creates a group of form fields that are equivalent to the fields in an EGL record part. To create the form fields, follow these steps:
  1. Open a form group in the EGL form editor.
  2. Create a form. See Creating a form in the EGL form editor.
  3. On the Palette view, click Record.
  4. Within a form in the editor, click and hold the mouse to draw a rectangle that represents the size and location of the fields. A preview box next to the mouse cursor shows you the size of the record fields and their location relative to the field.
    Note: You can add a record only within an existing form.
  5. When the record is the correct size, release the mouse. The EGL Record Placement window opens.
  6. In the EGL Record Placement, click Browse. The Select a Record Part dialog opens.
  7. In the Select a Record Part dialog, click the name of the record part you want to use or type the name of a record part.
  8. Click OK. Now the Create a Record window is populated with a list of the fields in that record.
  9. Using one or more of the following methods, select and organize the record part fields you want to display as fields in the form:
    • To remove a field, click its name and then click Remove .
    • To add a field, follow these steps:
      1. Click the Add button. The Edit Table Entry window opens.
      2. In the Edit Table Entry window, type a name for the field in the Field Name box.
      3. In the Type list, select a type for the field.
      4. If necessary for the type you have selected, enter the precision for the field in the Precision field.
      5. Enter a width for the field in the Field Width field.
      6. If you want the field to be an input field, select the Make this field an input field check box. Otherwise, clear the check box.
      7. Click OK.
    • To edit a field, follow these steps:
      1. Click the field's name.
      2. Click the Edit button. The Edit Table Entry window opens.
      3. In the Edit Table Entry window, type a name for the field in the Field Name box.
      4. In the Type list, select a type for the field.
      5. If necessary for the type you have selected, enter the precision for the field in the Precision field.
      6. Enter a width for the field in the Field Width field.
      7. If you want the field to be an input field, select the Make this field an input field check box. Otherwise, clear the check box.
      8. Click OK.
    • To move fields up or down in the list, use the Up and Down buttons.
  10. Using the Orientation radio buttons, choose a vertical or horizontal orientation for the fields.
  11. In the Number of Rows field, enter the number of rows you want the group of fields to have.
  12. If you want the group of fields to have a header row, select the Create header row check box.
  13. Click Finish.

Related concepts
EGL form editor overview
Editing form groups with the EGL form editor
Form templates in the EGL form editor

Related tasks
Creating a form in the EGL form editor
Creating a constant field
Creating a variable field in a print or text form

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.