简体   繁体   English

参数。 报表生成器3.0

[英]Parameter. Report Builder 3.0

I have trouble to display parameter. 我无法显示参数。 I want to drop down list of State abbreviations where the policy effective date is between StartDate and End Date. 我想下拉州立缩写的列表,其中政策生效日期在StartDate和End Date之间。

I have three parameters: StateAbbreviate, StartDate, EndDate. 我有三个参数:StateAbbreviate,StartDate,EndDate。

In SQL, I created procedure with the following conditions for parameter: 在SQL中,我为参数创建了以下条件的过程:

rds.StateAbbreviate = @StateAbbreviate and PolicyEffectiveDate Between @StartDate and @EndDate rds.StateAbbreviate = @StartDate和@EndDate之间的@StateAbbreviate和PolicyEffectiveDate

rds.StateAbbreviate is from different view. rds.StateAbbreviate是从不同的角度来看的。

In Report Builder, I also have these three parameters. 在报表生成器中,我还具有这三个参数。 Everything is working fine when I just type the state code. 当我只输入状态代码时,一切工作正常。 When I tried to create drop down list using "Available Values" (Report Parameter Properties) I got this error: 当我尝试使用“可用值”(报表参数属性)创建下拉列表时,出现以下错误:

The report parameter ‘StateAbbreviate’ has a DefaultValue or a ValidValue that depends on the report parameter “StateAbbreviate”. Forward dependencies are not valid.

startdate and enddate parameters must appear in your parameter list BEFORE the stateabbreviate parameter. startdate和enddate参数必须在stateabbreviate参数之前出现在您的参数列表中。 ReportBuilder is not good with allowing rearranging and it enters parameters sequentially, in the order which they are entered. ReportBuilder不允许重新排列,并且按输入顺序依次输入参数。 You may have to delete the params. 您可能必须删除参数。 and re-enter them in order - StartDate, EndDate, StateAbbreviate. 然后按顺序重新输入-StartDate,EndDate,StateAbbreviate。 Then, stateabbreviate can use the previous 2 parameters to dynamically run the sp. 然后,stateabbreviate可以使用前面的2个参数来动态运行sp。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM