Solved

Dynamic drop-down list using Crystal Reports

Posted on 2014-09-30
3
3,312 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
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

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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

820 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