BIRT 通过 UI 添加现有聚合

发布于 2024-12-18 15:24:48 字数 136 浏览 2 评论 0原文

我想将现有聚合添加到报告中。对于数据集中的简单参数,很简单,只需拖放即可。

我过去一直删除并重新创建它们,但我已经厌倦了这样做。我可以通过 XML 来完成此操作,但如果有办法的话,只需通过 UI 进行拖放即可轻松完成。

谢谢。

I want to add an existing aggregation to a report. For simple parameters from a dataset it's easy, just drag drop.

I've been deleting and recreating them in the past and i'm tired of doing that. I could do it through the XML, but it'd be easy to just drag-drop through the UI if there's a way.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一身骄傲 2024-12-25 15:24:48

作为删除和重新创建它们的替代方法,Peh、Hague 和 Tatchell 撰写的“BIRT:现场指南”建议如下:

  1. 在要显示聚合值的位置插入 text 元素。
  2. 在“编辑文本项”对话框中,从最初显示“自动”的下拉列表中选择“HTML”。
  3. 输入如下所示的公式:row["聚合名称"]
    (聚合名称应替换为表中聚合绑定的名称。)
  4. 按“确定”保存文本元素的指定表达式。

对于相对简单的聚合,我发现删除并重新创建它们更容易。

As an alternative to deleting and recreating them, "BIRT: A Field Guide" by Peh, Hague and Tatchell suggests the following:

  1. Insert a text element where you want to display the aggregation value.
  2. In the Edit Text Item dialog, select HTML from the dropdown list that initially displays Auto.
  3. Enter a formula like the following: <VALUE-OF>row["aggregation-name"]</VALUE-OF>
    (aggregation-name should be replaced with the name of the aggregation binding from the table.)
  4. Press OK to save the specified expression for the text element.

For relatively simple aggregations, I find it easier to delete and recreate them.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文