【问题标题】:RDLC report Error "Report item expressions can only refer to other report items within the same grouping scope or a containing grouping scope."RDLC 报表错误“报表项表达式只能引用同一分组范围或包含分组范围内的其他报表项。”
【发布时间】:2015-09-15 19:05:41
【问题描述】:

我需要在文本框中显示一些值,该值将从 Tablix 接收。

但是这个消息是错误的

    The Value expression for the text box‘TextBoxName’ refers to the report item ‘NameOfTexboxInTablix’.
     Report item expressions can only refer to other report items within the same grouping scope or a containing grouping scope. 
      Letters in the names of report items must use the correct case.

在隐藏的 tablix 中有一个名为“NameOfTexboxInTablix”的单元格,它使用表达式来获取这样的值

    =Lookup(Fields!SEQ_NO.Value,"NO_2",Fields!PROCESS_CODE.Value, "PART_PROCESS")

我有三个 Textbox (outside tablix) 。三个文本框用于显示 数据集第一行、第二行和第三行的值。

-Textbox1 将显示第一行的“PROCESS_CODE”。

-Textbox2 将显示第二行的“PROCESS_CODE”。

-Textbox3 将显示第三行的“PROCESS_CODE”。

所以我指的是一个单元格,它是 tablix 中的文本框。名为 "NameOfTexboxInTablix" 的文本框。 Textbox1,2 和 3 将通过此表达式引用

         =ReportItems!NameOfTexboxInTablix.Value

但这是错误的。

如何在不合并数据集的情况下解决这个问题?

【问题讨论】:

    标签: reporting-services rdlc


    【解决方案1】:

    我已经解决了这个问题。 我隐藏的 Tablix 使用查找功能。 有时 Tablix 会在设计器下方的窗口中自动创建分组(行组)。它被命名为“详细信息”

    所以我通过删除这个“详细信息”组解决了这个问题。

    【讨论】:

    • 是的,你是对的。无法在其他 tablix 中引用作为分组一部分的文本框。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多