在弹出的 JasperReports Server 中执行向下钻取 jasper 报告
execute drill down jasper report in pop up JasperReports Server
如何在同一 window 中作为弹出窗口执行向下钻取子报告?
现在它正在 JasperReports Server.
的相同 window 中向下钻取
下面是代码:
<textField hyperlinkType="ReportExecution">
<reportElement mode="Opaque" x="0" y="0" width="60" height="20" forecolor="#2471D6" uuid="dcbcfbd0-98a4-4c94-a7a5-01ff9bff8db8"/>
<textElement textAlignment="Center" verticalAlignment="Middle"> <font isUnderline="true"/> </textElement>
<textFieldExpression><![CDATA[$V{resourceunique1}]]></textFieldExpression> <hyperlinkParameter name="_report">
<hyperlinkParameterExpression><![CDATA["jrepo:/ca_ppm/ReportsCustom/subReports/ResourceCapacityGridByProjectReport"]]></hyperlinkParameterExpression>
</textField>
我需要在参数“_report”中弹出,我可以直接给“_report”参数里面的javascript表达式吗。如果是这样,你能带领我实现它吗
您可以在 Jaspersoft Studio 的“超链接”选项卡中使用这些值填充,从而在弹出窗口 window 中打开报告。注意你需要添加你的服务器 URL:
- Link 目标:自己
- Link 类型:参考文献
- 超链接引用表达式:"javascript:void(window.open("jasperserver-url/flow.html?_flowId=viewReportFlow&reportUnit=/public/Resources/Reports/ca_ppm/ReportsCustom/sub Reports/ResourceCapacityGridByProjectReport&decorate=no'" +", "+"\'\'"+","+"\'height=480,width=950,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no,location=no\'"+"));"
如何在同一 window 中作为弹出窗口执行向下钻取子报告?
现在它正在 JasperReports Server.
的相同 window 中向下钻取
下面是代码:
<textField hyperlinkType="ReportExecution">
<reportElement mode="Opaque" x="0" y="0" width="60" height="20" forecolor="#2471D6" uuid="dcbcfbd0-98a4-4c94-a7a5-01ff9bff8db8"/>
<textElement textAlignment="Center" verticalAlignment="Middle"> <font isUnderline="true"/> </textElement>
<textFieldExpression><![CDATA[$V{resourceunique1}]]></textFieldExpression> <hyperlinkParameter name="_report">
<hyperlinkParameterExpression><![CDATA["jrepo:/ca_ppm/ReportsCustom/subReports/ResourceCapacityGridByProjectReport"]]></hyperlinkParameterExpression>
</textField>
我需要在参数“_report”中弹出,我可以直接给“_report”参数里面的javascript表达式吗。如果是这样,你能带领我实现它吗
您可以在 Jaspersoft Studio 的“超链接”选项卡中使用这些值填充,从而在弹出窗口 window 中打开报告。注意你需要添加你的服务器 URL:
- Link 目标:自己
- Link 类型:参考文献
- 超链接引用表达式:"javascript:void(window.open("jasperserver-url/flow.html?_flowId=viewReportFlow&reportUnit=/public/Resources/Reports/ca_ppm/ReportsCustom/sub Reports/ResourceCapacityGridByProjectReport&decorate=no'" +", "+"\'\'"+","+"\'height=480,width=950,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no,location=no\'"+"));"