简体   繁体   中英

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.

I have three parameters: StateAbbreviate, StartDate, EndDate.

In SQL, I created procedure with the following conditions for parameter:

rds.StateAbbreviate = @StateAbbreviate and PolicyEffectiveDate Between @StartDate and @EndDate

rds.StateAbbreviate is from different view.

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. ReportBuilder is not good with allowing rearranging and it enters parameters sequentially, in the order which they are entered. You may have to delete the params. and re-enter them in order - StartDate, EndDate, StateAbbreviate. Then, stateabbreviate can use the previous 2 parameters to dynamically run the sp.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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