To create a parameter with a cascading list of values

  1. Open the sample report called Group.rpt.

    Sample reports are located on the SAP Business Objects Support web site.

  2. On the View menu, click Field Explorer.

    The Field Explorer dialog box appears.

  3. Select Parameter Fields and click New.

    The Create New Parameter dialog box appears.

  4. Enter a name for the parameter in the Name field (up to 255 alphanumeric characters).

    This example uses Supplier City.

  5. In the List of Values area, click Dynamic.
  6. Enter prompting text for your prompt group in the Prompt Group Text field.

    This example uses "Choose the City that your supplier is located in."

  7. Ensure that New is selected in the Choose a Data Source area.
  8. Click Insert.

    The program automatically expands the Value list. You use this area to define the fields that make up your cascading list of values. This example uses a cascade of Country, Region, and City.

  9. From the Value list, select Country.
  10. Click the blank field under Country and select Region.
  11. Click the blank field under Region and select City.
  12. In the Parameters area, click City to bind the field that contains the City value to the parameter.

    In this step, you are choosing the field in your cascading hierarchy that should be bound to the parameter field that you are creating. Because this particular parameter is intended to provide Crystal Reports with a city value, you bind the parameter to City.

  13. In the Prompt Text field (in the Value Options area), enter additional prompting text for each of the fields in your cascading list of values.

    This is the text that appears in the "Enter prompt values" dialog box when the report is refreshed.



  14. Click OK.
  15. Return to the Field Explorer dialog box, and drag the Supplier City parameter into your report.