[英]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. 确保您获得正在引用的文本框对象的正确名称。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.