简体   繁体   English

如何在表达式中引用文本框值? SSRS

[英]how do I reference a text box value in an expression? SSRS

I have a list and inside this list I have a text box. 我有一个列表,在这个列表中我有一个文本框。

Since it's a list, the text box value changes for each row in the dataset. 由于它是一个列表,因此文本框值会更改数据集中的每一行。

OUTSIDE this list, I have another text box which is part of the HEADER. 在这个列表的外面,我有另一个文本框,它是HEADER的一部分。

I want the HEADER to change based on the value of the text box in the list. 我希望HEADER根据列表中文本框的值进行更改。

In the text box in the header, how do I reference the text box inside the list? 在标题的文本框中,如何引用列表中的文本框?

To refer to any report objects you can use ReportItems Collection. 要引用任何报表对象,可以使用ReportItems Collection。

In your header textbox put a expression like this to refer to textbox in the list: 在标题文本框中放置一个这样的表达式来引用列表中的文本框:

=ReportItems!TextBoxList1.Value

Remember SSRS is case sensitive . 记住SSRS 区分大小写 Make sure you get the right name of the text box object you are referring to. 确保您获得正在引用的文本框对象的正确名称。

MSDN article on ReportItems 有关ReportItems的MSDN文章

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

相关问题 如何使用表达式在 SSRS 中设置文本框的可见性? - How do I set the visibility of a text box in SSRS using an expression? 在 SSRS 中,当我的值为 NaN 时,如何在表达式中使用它? - In SSRS, when my value is NaN, how do I use that in an expression? 如何用逗号分割ssrs文本值? - How do I split an ssrs text value by comma? SSRS:文本框中的日期格式表达式 - SSRS : Date format expression in Text box 将鼠标悬停在 ssrs 中的图像上时,如何格式化工具提示表达式中显示的文本? - How do I format text displayed in a tooltip expression when hovering over an image in ssrs? 如何在SSRS中使用Lookup表达式和IIF表达式? - How do I use the Lookup expression and the IIF expression in SSRS? 如何在SSRS中使用带有CASE表达式的多值参数? - How do I use a multi-value parameter with a CASE expression in SSRS? 如何在 SSRS (SQL Server Reporting Services) 的 iif 表达式中使用多值参数? - How do I use a multi-value parameter in an iif expression in SSRS (SQL Server Reporting Services)? 如何在SSRS文本框中显示多值参数值 - how to display multivalued parameter value in SSRS text box 如何将下拉列表值填充到ssrs报告的文本框中 - How to populate a drop down list value into a text box for an ssrs report
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM