[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 611
  • Last Modified:

Crystal report command parameter via table

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
ITDeptAtPCS
Asked:
ITDeptAtPCS
1 Solution
 
Kurt ReinhardtCommented:
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now