简体   繁体   English

SSRS下拉参数值未按定义设置

[英]SSRS drop down parameter values not set as defined

I have a simple SSRS report, on which I have a parameter called year and it is a drop down of many years. 我有一个简单的SSRS报告,上面有一个名为year的参数,它是很多年的下拉列表。 I defined the parameter as a list of specified values. 我将参数定义为指定值的列表。 I defined both the label and the value of the drop down to be the year number. 我将标签和下拉列表的值都定义为年份。 You can see it in the picture below. 您可以在下面的图片中看到它。 But after I deployed it, the values of drop down list are 1,2,3,4,5,6..., which are not my year numbers! 但是在我部署它之后,下拉列表的值为1,2,3,4,5,6 ...,这不是我的年份! I am puzzled. 我很困惑。

I cleaned the solution, rebuilt the solution, re-deployed the solution, the problem remains. 我清理了解决方案,重新构建了解决方案,重新部署了解决方案,问题仍然存在。

This is Sql server 2012 express reporting service. 这是Sql Server 2012快速报告服务。

I don't know why. 我不知道为什么 Any idea what I am doing wrong? 知道我在做什么错吗? 在此处输入图片说明

I have just tried this creating a report using VS2012 and publishing to SSRS 2014 server where it works correctly in chrome. 我刚刚尝试过使用VS2012创建报告并将其发布到SSRS 2014服务器,并在chrome中正常工作。

I found the same using SSRS 2008R2 report server in Chrome 我在Chrome中使用SSRS 2008R2报表服务器发现了相同的内容

A workaround would be to use a dataset to supply your parameter values instead of having fixed parameter values. 一种解决方法是使用数据集来提供您的参数值,而不是使用固定的参数值。

Drop down values are stored in the report xml if you use fixed values 如果您使用固定值,则下拉值将存储在报表xml中

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

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