简体   繁体   English

如何在SSRS-Visual Studio 2012中将数据集参数映射到报表参数?

[英]How to map dataset parameter to report parameter in SSRS - Visual Studio 2012?

I created a dataset with a parameter ( the parameter is automatically created ), and I created a parameter in the report. 我使用参数创建了一个数据集(该参数是自动创建的),并且在报表中创建了一个参数。 How can I associate the two so that when I run the report the parameter prompted passes the value to the datasets parameter? 如何将两者关联起来,以便在运行报表时,提示的参数将值传递给数据集参数? In MSDN, there`sa dataset properties -> parameter where you can pass the name and value, but all Ive got in that window is the name and default value. 在MSDN中,有一个数据集属性->参数,您可以在其中传递名称和值,但是Ive在该窗口中得到的只是名称和默认值。

Right-click on the dataset that you want to pass the parameter to, select Dataset properties and select Parameters and you will get a screen showing the mapped parameters. 右键单击要传递参数的Dataset properties ,选择“ Dataset properties然后选择“ Parameters ,您将获得一个显示映射参数的屏幕。 Use this screen to map any parameters that are missing and pass them values. 使用此屏幕可以映射所有缺少的参数并传递它们的值。

Normally when you put a parameter into your query then the parameter gets added to the report parameters and the mapped parameters for that dataset automatically. 通常,当您在查询中添加参数时,该参数会自动添加到报表参数和该数据集的映射参数中。

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

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