Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Crystal reports Crystal Reports 2008中的静态参数列表_Crystal Reports - Fatal编程技术网

Crystal reports Crystal Reports 2008中的静态参数列表

Crystal reports Crystal Reports 2008中的静态参数列表,crystal-reports,Crystal Reports,我在CR2008中有一个静态用户名列表作为参数。我希望能够使用CR语法向所选用户添加数据库值,并使用该语法进行查询 例如,如果报告运行者从我的参数列表中选择Doe,John,我需要使用 If {?prmUsers} = "Doe, John" then variableA = "doejoh" And variableB = "john.doe@gmail.com" 而select将类似于: Declare @BeginDate SmallDateTime Declare @EndDate S

我在CR2008中有一个静态用户名列表作为参数。我希望能够使用CR语法向所选用户添加数据库值,并使用该语法进行查询

例如,如果报告运行者从我的参数列表中选择Doe,John,我需要使用

If {?prmUsers} = "Doe, John" then variableA = "doejoh" And variableB = "john.doe@gmail.com"
而select将类似于:

Declare @BeginDate SmallDateTime
Declare @EndDate SmallDateTime
Set @BeginDate = '2009-01-19'
Set @EndDate = '2009-01-23'

SELECT DISTINCT
    DateTime,
    [Recipient-Address],
    [Message-Subject],
    [Sender-Address]
FROM
    dbo.Logs
WHERE
    LEFT([Recipient-Address], 6) IN ( 'doejoh' ) OR
    LEFT([Recipient-Address], 10) IN ( 'john.doe@g' )
    AND DateTime BETWEEN @BeginDate + ' 00:00:00' And @EndDate + ' 23:59:59'
当然,报表运行程序可以选择多个名称任何想法

这在“罐装”水晶报告中是不可能的。您的解决方法是创建一个运行您的报告的应用程序。然后,您可以按照上面的描述设计提示符,并将“final”参数值应用于报表。

这在“罐装”水晶报表中是不可能的。您的解决方法是创建一个运行您的报告的应用程序。然后,您可以按照上面的描述设计提示符,并将“final”参数值应用于报表