Skip to Content
author's profile photo Former Member
Former Member

Conditional parameter values?

In Crystal XI, is there a way to place conditions on which values display in a dynamic parameter prompt?

For example, if I create a dynamic parameter for Company, can I have only companies that meet certain criteria dynamically populate the drop-down list?

If not, is there a way to accomplish this with a static parameter definition?

Thank you.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2008 at 09:11 PM

    To apply filter condition for a dynamic parameter you need to create a command using "Add Command" in database expert.

    Now write the command like

    select company from table where (use condition here)

    click on ok and remove the links between the command ang existing tables.

    Now create a dynamic parameter in the report and use company field from command instead of using for existing table. This shows you the data according the the fileter condition added in add command.

    Regards,

    Raghavendra

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.