iReports,子数据集中的组

发布于 2024-12-24 22:52:26 字数 475 浏览 1 评论 0原文

任何人都可以帮助我在 iReports 4.5 中对子数据集查询进行分组。

我想使用这些元素:

http://jasperforge.org/ uploads/publish/jasperreportswebsite/trunk/schema.reference.html#group

就像我在主报告查询(报告组)中创建的普通报告组一样。

我在 中输入 groupHeadergroupFooter 部分,但出现错误

我还想使用 isStartNewPage 等属性

Could anyone can help me with grouping subdataset query in iReports 4.5.

I wan to use these elements:

http://jasperforge.org/uploads/publish/jasperreportswebsite/trunk/schema.reference.html#group

like in normal report group I create in main report query (report group).

I type groupHeader and groupFooter section in <group> but errors apears

I want to use also atributes like isStartNewPage

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

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

发布评论

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

评论(1

只是我以为 2024-12-31 22:52:26

不幸的是,子数据集中的组仅对计算变量(例如图表小计)真正有用。

您可能正在寻找的是子报表。

你可以让它无缝地融入。使其全宽,如果使用 iReport,则删除所有不必要的带区。 $P{REPORT_PARAMETERS_MAP} 会将相同的参数传递给子报表。

<band height="10">
    <subreport>
        <reportElement x="0" y="0" width="555" height="10"/>
        <parametersMapExpression><![CDATA[$P{REPORT_PARAMETERS_MAP}]]></parametersMapExpression>
        <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
        <subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "MainReport_MySubreport.jasper"]]></subreportExpression>
    </subreport>
</band>

Unfortunately groups in subdatasets are only really useful for calculating variables such as subtotals for charts.

What you are probably looking for a is a subreport.

You can make it fit in seamlessly. Make it full width and if using iReport delete all the unnecessary bands. $P{REPORT_PARAMETERS_MAP} will pass the same parameters to the subreport.

<band height="10">
    <subreport>
        <reportElement x="0" y="0" width="555" height="10"/>
        <parametersMapExpression><![CDATA[$P{REPORT_PARAMETERS_MAP}]]></parametersMapExpression>
        <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
        <subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "MainReport_MySubreport.jasper"]]></subreportExpression>
    </subreport>
</band>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文