
To create dynamic parameters in Crystal Reports, add a parameter in Field Explorer, set its list of values to Dynamic, and choose the field that supplies the options. Then use the parameter in record selection so the report returns the records the reader chooses.
Suppose your inventory report includes stock from several suppliers. The purchasing team wants to choose one supplier when it runs the report. Use a supplier list from the database so the choices can reflect changes in the source data.
Choose the field that identifies the supplier
Start with a field such as Supplier ID that identifies one supplier consistently. If two vendors have similar names, the ID still tells them apart. Show the supplier name as the description if your list includes both fields.
Decide whether the prompt should show every supplier or only active suppliers. If the source table includes old entries, prepare a suitable source list and verify that it includes the options readers are allowed to use.
Create the dynamic prompt and connect it to the report
- Open the report and go to View → Field Explorer. Select Parameter Fields and choose New.
- Name the parameter Supplier and choose a data type that matches your Supplier ID. Set List of Values to Dynamic.
- Choose a new or existing list as appropriate. For a new list, select the Supplier ID field as the value. If available, use the supplier name as the description and enter prompt text that tells the buyer what to select.
- Choose Report > Selection Formulas > Record. Add a condition such as
{Inventory.SupplierID} = {?Supplier}, using your report’s field and parameter names. Join it to the existing stock and date conditions with and.
SAP’s Crystal Reports 2025 dynamic prompt guide shows the designer controls. The steps here use Crystal Reports 2025. If your report uses a list from a BusinessObjects repository, verify where that list comes from and how it refreshes.
Test the prompt with two suppliers
Refresh the report and select a supplier with known stock. Check the supplier ID and inventory total against the source. Then pick a second supplier and confirm that the output changes, including any subreports that should use the same selection.
If the right supplier appears in the list but the report returns every supplier, check the record-selection formula. If the list is empty or out of date, check the list source and the account the report uses to connect to it.
Label the exported report with the selected supplier. If the purchasing team opens an older PDF later, the label helps them tell which selection the file contains.
Add a cascading prompt only if readers need a second choice to narrow the list. For example, choose a buying region first, then show the suppliers in that region. Test the region and supplier together.
Check the report with a user account that will actually run it. A designer may have access to a source that a buyer can’t read. Save one expected result for each supplier so you can repeat the checks after changing the list or report.
Supply a value when the report runs on a schedule
A dynamic prompt provides choices when someone opens the report. If this is your first recurring job, see the guide to automating Crystal Reports before you configure delivery. An unattended schedule still needs a value to pass to the report. If one supplier receives a copy every week, set and test its Supplier ID on the schedule.
If you need a different supplier and destination for each run, a data-driven CRD schedule can take both from an approved query. Test two suppliers against restricted destinations first. Open each file and confirm that it contains only the intended supplier’s records.
Use the CRD trial to run this Crystal report for two test suppliers and check that each file uses the right parameter. In a demo, see how to map two sample Supplier IDs to Crystal Reports parameters and verify the records in each file at its test destination.