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

Populate a multi value parameter with a command source

Hi all, I have a report where users can select from a list of sales people they would like to report on, obviously they have no way of knowing if the person has any sales or not so I would like to run a query on the sales tables and limit the selectable sales people to those that have sales , is this doable ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Apr 20, 2016 at 05:11 PM

    Hi Peter,

    Yes, certainly!

    The query you'd write would have an Inner Join from Sales Person Table to the Sales Table.

    Of course, I've freely assumed that they both are in separate tables.

    You'd then add this SQL via the Add Command option and NOT join it to the existing tables. CR will complain about unsupported data sources and all that, which you may safely ignore.

    You should then be able to modify the prompt to use a dynamic list of values from the field in this new Command object.


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 20, 2016 at 05:08 PM

    Yes. See my blog post for instructions about how to use a command to supply data for a dynamic parameter: Best Practices When Using Commands with Crystal Reports


    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.