Crystal Reports - Cascading Prompts


Advertisements

Cascading parameter group allows to arrange your parameters into groups, which provides a cascade of filtered choices.

For example, if you are prompting for a city value, but you also need to know which country and region that city comes from, you could create a cascading parameter group. In this case, you first prompt for a country, and when that value has been selected, the program prompts for a region by showing only the regions that apply to the selected country. Finally, when a region value has been selected, the program prompts for a city by showing only the cities that apply to the selected region. In this way, you can provide your user with a manageable list of cities and be sure that your user picks the correct city.

How to create a cascading parameter group?

Go to Data Explorer → Parameter → New → New Cascading Parameter group

New Cascading Parameter Group

Create a Parameter Group dialog box appears → Enter a name for the Parameter group → Enter the Prompt text as shown in the following image.

Create Parameter Group

Now click the first blank row in value column, it will show you all the available objects in the list. From the list, select Country → Select blank row below Country and select Region → OK

Now drag the country parameter to the report. It will give a prompt to enter Country name. Once you choose country name → it will give a prompt to choose the region name.

Country Parameter

Drag Region name to the report.

Advertisements