Crystal Reports  

Designing Parameter Fields

To have a user be prompted with a parameter, you must include the parameter somewhere in the report — in a record or group selection, in a formula, or simply as a field on the report.

To design a parameter field

  1. From the Field Explorer, right-click Parameter Fields and click New.
  2. Enter a name for the parameter in the Name field (up to 255 alphanumeric characters).
  3. Enter the desired prompting text in the Prompting Text field (up to 255 alphanumeric characters).

    This is the text that appears in the Enter Parameter Values dialog box when the report is refreshed.

  4. Enter the Value Type.
  5. Click Set Default Values if you want to limit or specify the options for the user.
  6. In the Set Default Values dialog box, specify the table and field for the parameter value.
  7. Click >> to move any values to the Default Values area.

    The user will be able to choose any values you move to the Default Values area. If you want to limit the selection, move only the values you would like the user to choose from.

    Tip   For a string parameter field that you are setting the default values for, you can choose to enter an Edit Mask in the Edit Mask field, rather than specifying a range.
  8. Click OK.

    The Create Parameter Field dialog box appears.

  9. Click OK.
  10. Drag and drop the parameter onto your report.

See Also

Incorporating Parameters into Formulas | Limiting Entry Type and Format in Parameters