DeePak
DeePak

Reputation: 145

Multiple Parameters in crystal report

I have created a crystal report layout with 3 parameter.

The 3 parameters are 1.) Date range 2.) Supplier 3.) Location code

User will always give input to the date range but will select either of these remaining two parameters based on the usage.

Is it possible to configure in one single report with optional option in Crystal layout

Upvotes: 0

Views: 826

Answers (1)

MilletSoftware
MilletSoftware

Reputation: 4026

Assuming you are not using a very old version of Crystal, when you create or edit a parameter, look at the list of parameter properties: one of them is 'Optional Prompt' -- simply change it from the default of False to True.

Then, in your record select logic you can use the HasValue() function to check whether the user provided a value for that parameter.

Upvotes: 1

Related Questions