Solved

Dynamic drop-down list using Crystal Reports

Posted on 2014-09-30
3
3,474 Views
Last Modified: 2014-10-04
I need to create a report that accepts two parameters. The second parameter in the report will present a dynamic drop-down list which is populated depending upon the information the user enters for the first parameter. Is this doable using Crystal Reports 2013? If so please provide an example.

Thanks
0
Comment
Question by:Ray Turner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 18

Expert Comment

by:vasto
ID: 40353603
This is not doable because Crystal reports is an engine, while setting parameters is a feature provided by the user interface. In fact the first parameter in your scenario is not a report parameter at all, it is a parameter for the query , which will get the values for the second parameter. What you can do is to create a command to retrieve the values for Parameter2 and add a parameter for this command. When you open the report it will ask you for a value for the command parameter, will run the command and will ask you again to select a value for Parameter 2. The difference is that the 2 parameters will be shown one after another in 2 separate dialogs instead of in one as you probably would like to see them. You can find report viewers , which support the scenario you are describing. I know this one: R-Tag (http://www.r-tag.com). They have a community edition, which is free. Here is a demo video showing your scenario with this viewer. http://www.r-tag.com/Pages/Preview_CascadingParameters.aspx

You can write also your own viewer.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 40353645
It is doable in Crystal.

Create a parameter in the report.
Give the parameter a name
Set the type to DYNAMIC
Click in the grid under VALUE (Click here to add item)
Choose the field for the first parameter
Click under PARAMETERS to CREATE THE PARAMETER
Click in the box (Click here to add item)
Choose the second field
Click to create the parameter
Click OK

IN the FIELD EXPLORER you can right click the parameters to rename them if you wish

Use them in the RECORD SELECTION to filter the data as desired

mlmcc
0
 

Author Closing Comment

by:Ray Turner
ID: 40361662
Thanks a lot!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question