Defining a Parameter Field
Use this procedure to define a parameter field for a report parameter form.
To define a parameter field
- On the Database Structure-Program Structure form, press Define (F6) and choose Parameters.
-
On the Parameter Definition form, put the cursor where
you want to paint the parameter field, press Field (F3), and choose from the following field types.
Choose To Field Define a field parameter. Range Define a range parameter. Task Define a task parameter. Order Define an order (sort) parameter. Summary Define an optional summary parameter. Select Define a record selection parameter. Parameter Select a parameter used in a condition. For more information on parameter fields, see Parameter Field Types.
- If the program has multiple tasks (reports), the system displays the program structure on the bottom half of the form. Select the task for which you are defining this parameter and press OK.
-
If you are defining a field or range parameter, the
Select A Field window appears. Select a field. You can select a field
from the primary file or from a file with a one-to-one relation from
the primary file.
If you are defining a record selection parameter and have more than one record selection, the Select A Selection Condition window appears. Select a record selection.
- In the Parameter Field Definition window, change the default attributes, if desired. For more information, see Parameter Field Attributes.
- You can change the default value for task, order, optional summary, or record selection parameters; or you can type alternate values. Also, you can type a translation of the value. The translation gives meaning to the value. For more information, see Defining Parameter Values and Translations.
-
Press OK.
The system displays the parameter on the top half of the form. When the cursor is on a parameter field definition, its values and translations appear on the bottom half of the form.
- To label the field, press Edit (F4) and choose Label Left.
-
Press OK.
The system labels the field and returns to the Database Structure-Program Structure form.