Solved

Crystal report command parameter via table

Posted on 2011-03-21
1
603 Views
Last Modified: 2012-05-11
Is there a possibiliy of passing values from a regular table as a parameter value in crystal report command?

For example: table Ordertrack (with fields: originatorid, requestdate)

Sql Command:

Select * from EmployeeeLoan where EmployerID={?@originatorid} and LoanDate >={?@requestdate}.

We cant join these 2 tables together but using a sql command would be most efficient if the command can accept values from the Ordertrack table for its parameters.
0
Comment
Question by:ITDeptAtPCS
1 Comment
 
LVL 26

Accepted Solution

by:
Kurt Reinhardt earned 250 total points
ID: 35182111
In other words, you want to use one table as the source for the List of Values with a dynamic parameter.  The short answer is no.  Dynamic parameters aren't compatible with SQL Commands. That being said, if you capture the dynamic parameters in a container report, you can pass them to a subreport that uses the command.   So, build a blank report against one table and create dynamic parameters against that table.  Then, create a subreport based on the command and link the main report to the subreport based on the parameter values in the main to the parameter values that exist inside the command.

~Kurt
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

773 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