[英]SSRS 2012 - How to pass the CommandText from my Dataset as a report parameter?
I need to pass the query from my Dataset as a parameter to another report. 我需要将查询从数据集作为参数传递给另一个报表。
I created a parameter with the expression '= Datasets! 我用表达式'= Datasets创建了一个参数! MyDataSet.CommandText' as default value, but giving preview displays an error: The value expression used for the report parameter 'dsQuery' refers to a dataset.
“ MyDataSet.CommandText”作为默认值,但提供预览会显示错误:用于报表参数“ dsQuery”的值表达式引用数据集。 Datasets can not be used in report parameter expressions.
数据集不能在报表参数表达式中使用。
I created a textbox with the same expression and it displays normal, so I changed the parameter expression to 'ReportItems!TextBox1.Value', but continued with similar error. 我创建了一个具有相同表达式的文本框,它显示正常,因此我将参数表达式更改为“ ReportItems!TextBox1.Value”,但继续出现类似错误。
How to pass the CommandText from my Dataset as a report parameter? 如何从我的数据集中将CommandText作为报告参数传递?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.