简体   繁体   English

根据SSRS报告中的另一个参数动态更改参数

[英]Dynamically changing parameter based on another in an SSRS report

We have a report that in 2005 version of SSRS, we could dynamically update one parameter (which is a text box) from another report parameter (which is a drop down). 我们有一个报告,在2005版的SSRS中,我们可以从另一个报告参数(这是一个下拉列表)动态更新一个参数(这是一个文本框)。 Each time the drop down changes, the text box would update. 每次下拉菜单更改时,文本框都会更新。 No problem. 没问题。 Now in 2008, it only happens when we first preview the report (in other words, the text box is updated by the drop down). 现在是2008年,只有在我们第一次预览报告时才会发生(换句话说,下拉列表会更新文本框)。 If I change the textbox to a drop down, it works. 如果我将文本框更改为下拉菜单,则可以使用。 But if I change it back to a text box (ie I no longer set Available Values to none), the text box only updates when first previewed. 但是,如果我将其更改回文本框(即,我不再将“可用值”设置为“无”),则仅在首次预览时更新文本框。

Has anyone had this issue before? 有人遇到过这个问题吗? Please help. 请帮忙。

Thanks. 谢谢。

SQL Server 2008 SSRS doesn't always update every parameter on a report any longer if it doesn't appear to be necessary. 如果没有必要,SQL Server 2008 SSRS不会总是更新报表上的每个参数。 There is a property under the parameter Advanced --> Refresh data when the parameter changes. 参数更改时,在参数高级->刷新数据下有一个属性。 The default value is "Automatically determine when to refresh". 默认值为“自动确定何时刷新”。 For your situation you probably need to change the parameter property to "Always refresh". 根据您的情况,您可能需要将parameter属性更改为“ Always refresh”。

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

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