问题标签 [pentaho-report-designer]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1131 浏览

java - 使用 Pentaho 报表设计器打印报表时页面丢失

我正在使用 Report-designer 3.6.1,但我的一份报告经常出现问题。

当我打印报告时,有时结果是缺页。该报告打印九页中的七页,最后一页显示的页数为 7/9。同样在最后一页,页脚丢失,就好像它没有配置一样。

这个问题是随机发生的(或以我无法掌握的特定模式)。所有其他报告都很好。他们都打印页脚和所有页面。

如果您需要更多信息发表评论,我会尽我所能做出回应,因为我是这个工具的新手。

这是我们设置报告的方式

主报告

  • 页眉
    1. 每页打印的一些字段;
  • 细节
    1. 子报告#1:列出每个产品的所有属性;
  • 报告页脚
    1. 空的
  • 页脚
    1. 一些文本字段;
    2. 页数(totalPageCount 函数);

子报告#1

  • 组头:空;
  • 细节
    1. 列标题;
    2. 子报告#2:列出每个产品的一些属性值;
  • 组页脚
  • 报告页脚
    1. 带有消息的文本字段。

子报告#2

  • 细节
    1. 属性名称;
  • 报告页脚:属性的值;
0 投票
1 回答
2608 浏览

mdx - 带 MDX 的参数 Pentaho 报表设计器

我正在做一个报告,使用 Pentaho Report Designer。我的数据源是一个带有 MySQL JDBC 的 Mondrian Cube。我正在使用 MDX 查询,我想把它参数化。我必须使用自己的查询配置参数。

我无法关联主查询和参数查询。为此,我以这种方式使用函数参数: where (strToMember(Parameter(name,type,default_value))) 但它不起作用。错误是什么?我需要做什么?

谢谢。

0 投票
2 回答
3800 浏览

datasource - Pentaho 报表设计器 - 动态数据源

我有一个 Pentaho Report Designer 的本地实例在我的盒子上运行,它有一个本地开发数据库配置为它的数据源。(2 个数据源配置,都指向同一个本地数据服务器;源数据库和目标数据库。)

显然,当我将此报告发布到生产 BI 服务器时,报告会失败,因为我的本地数据源不再可访问。

清楚地将报告配置为依赖生产数据库将解决任何身份危机(危机?),但我生活在棍子中,所以网络很慢,我不想影响生产数据库用于开发目的。

在 Kettle 中,我更新了kettle.properties 文件以提供本地化的数据源变量(非常适合对我的转换进行单元测试!)并且想知道在 PRD 中是否有类似的方法来本地化变量?

0 投票
2 回答
1681 浏览

pentaho - Pentaho 报表设计器中的日期参数验证

如何在 pentaho 报告设计器中验证日期参数。我在报告/prpt 中使用“fromDate”和“ToDate”参数。因为如果我选择特定的日期范围,我将只获得该特定的日期范围值。它是工作正常...但是如果有人选择像“FromDate > ToDate”这样的日期范围,我想显示一些通知,比如“错误的日期选择”,比如 dat..

在 Pentaho 报表设计器中可以吗?或者通过使用一些java SCript?

0 投票
0 回答
1332 浏览

sql-server-2008 - 预览查询时 Pentaho 报表设计器中的 java.lang.NullPointerException 异常

我是报表设计器的新手,正在尝试创建我的第一个报表。我创建了一个 JDBC 数据源,但是当我尝试预览查询时,我得到一个错误异常:

java.lang.NullPointerException

当我的查询没有“加入”时,我可以预览结果,所以我认为这与此有关。我的 sql 查询如下所示:

当我没有从第二个表中选择任何内容时,它将返回预览结果:

当我从第二个表中选择要选择的键时,它也会返回预览结果:

我正在使用报表设计器 3.9.0。

有 3 个空点异常,这是我通过单击“复制到剪贴板”得到的结果:

java.lang.NullPointerException at javax.swing.JTable.prepareRenderer(Unknown Source) at javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown Source) at javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown Source) at javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source) at javax.swing.plaf.ComponentUI.update(Unknown Source) at javax.swing.JComponent.paintComponent(Unknown Source) at javax.swing.JComponent.paint( Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JViewport.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source ) 在 javax.swing.JComponent.paint(Unknown Source) 在 javax.swing.JComponent.paintChildren(Unknown Source) 在 javax.swing.JComponent.paint(Unknown Source) 在 javax.swing.JComponent。paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JLayeredPane.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paintToOffscreen( Unknown Source) 在 javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source) 在 javax.swing.RepaintManager$PaintManager.paint(Unknown Source) 在 javax.swing.RepaintManager.paint(Unknown Source) 在 javax.swing.JComponent。油漆(未知来源)在 java.awt.GraphicsCallback$PaintCallback.run(未知来源)在 sun.awt.SunGraphicsCallback.runOneComponent(未知来源)在 sun.awt.SunGraphicsCallback.runComponents(未知来源)在 java.awt.Container。在 javax.swing.RepaintManager 的 java.awt.Window.paint(Unknown Source) 上的paint(Unknown Source)。javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source) at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source) at java.awt.event 的paintDirtyRegions(Unknown Source)。 InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread。 pumpEventsForFilter(Unknown Source) at java.awt.Dialog$1.run(Unknown Source) at java.awt.Dialog$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog。 show(Unknown Source) at java.awt.Component.show(Unknown Source) at java.awt.Component。setVisible(Unknown Source) at java.awt.Window.setVisible(Unknown Source) at java.awt.Dialog.setVisible(Unknown Source) at org.pentaho.reporting.libraries.designtime.swing.background.DataPreviewDialog.showData(DataPreviewDialog. java:133) at org.pentaho.reporting.ui.datasources.jdbc.ui.JdbcDataSourceDialog$PreviewAction.actionPerformed(JdbcDataSourceDialog.java:141) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$ Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java. awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java。awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt。 Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container。 dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(未知源)在 java.awt.EventDispatchThread.pumpEventsForFilter(未知源)在 java.awt。EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.Dialog$1.run(Unknown Source) at java.awt.Dialog$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.awt。 Dialog.show(Unknown Source) at java.awt.Component.show(Unknown Source) at java.awt.Component.setVisible(Unknown Source) at java.awt.Window.setVisible(Unknown Source) at java.awt.Dialog。 setVisible(Unknown Source) at org.pentaho.reporting.libraries.designtime.swing.CommonDialog.performEdit(CommonDialog.java:156) at org.pentaho.reporting.ui.datasources.jdbc.ui.JdbcDataSourceDialog.performConfiguration(JdbcDataSourceDialog.java :759) 在 org.pentaho.reporting.designer.core.actions.report.AddDataFactoryAction 的 org.pentaho.reporting.ui.datasources.jdbc.JdbcDataSourcePlugin.performEdit(JdbcDataSourcePlugin.java:67)。actionPerformed(AddDataFactoryAction.java:79) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing .DefaultButtonModel.setPressed(Unknown Source) at javax.swing.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased (未知源) 在 java.awt.AWTEventMulticaster.mouseReleased(未知源) 在 java.awt.Component.processMouseEvent(未知源) 在 javax.swing.JComponent.processMouseEvent(未知源) 在 java.awt.Component.processEvent(Unknown源)在 java.awt.Container.processEvent(未知源)在 java.awt.Component。dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent( Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source ) 在 java.awt.EventQueue.dispatchEvent(Unknown Source) 在 java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) 在 java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) 在 java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) 在java.awt.EventDispatchThread。java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) 的 pumpEvents(Unknown Source)

java.lang.NullPointerException at javax.swing.JTable.prepareRenderer(Unknown Source) at javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown Source) at javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown Source) at javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source) at javax.swing.plaf.ComponentUI.update(Unknown Source) at javax.swing.JComponent.paintComponent(Unknown Source) at javax.swing.JComponent.paint( Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JViewport.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source ) 在 javax.swing.JComponent.paint(Unknown Source) 在 javax.swing.JComponent.paintChildren(Unknown Source) 在 javax.swing.JComponent.paint(Unknown Source) 在 javax.swing.JComponent。paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JLayeredPane.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paintToOffscreen( Unknown Source) 在 javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source) 在 javax.swing.RepaintManager$PaintManager.paint(Unknown Source) 在 javax.swing.RepaintManager.paint(Unknown Source) 在 javax.swing.JComponent。油漆(未知来源)在 java.awt.GraphicsCallback$PaintCallback.run(未知来源)在 sun.awt.SunGraphicsCallback.runOneComponent(未知来源)在 sun.awt.SunGraphicsCallback.runComponents(未知来源)在 java.awt.Container。在 javax.swing.RepaintManager 的 java.awt.Window.paint(Unknown Source) 上的paint(Unknown Source)。javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source) at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source) at java.awt.event 的paintDirtyRegions(Unknown Source)。 InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread。 pumpEventsForFilter(Unknown Source) at java.awt.Dialog$1.run(Unknown Source) at java.awt.Dialog$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog。 show(Unknown Source) at java.awt.Component.show(Unknown Source) at java.awt.Component。setVisible(Unknown Source) at java.awt.Window.setVisible(Unknown Source) at java.awt.Dialog.setVisible(Unknown Source) at org.pentaho.reporting.libraries.designtime.swing.background.DataPreviewDialog.showData(DataPreviewDialog. java:133) at org.pentaho.reporting.ui.datasources.jdbc.ui.JdbcDataSourceDialog$PreviewAction.actionPerformed(JdbcDataSourceDialog.java:141) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$ Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java. awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java。awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt。 Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container。 dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(未知源)在 java.awt.EventDispatchThread.pumpEventsForFilter(未知源)在 java.awt。EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.Dialog$1.run(Unknown Source) at java.awt.Dialog$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.awt。 Dialog.show(Unknown Source) at java.awt.Component.show(Unknown Source) at java.awt.Component.setVisible(Unknown Source) at java.awt.Window.setVisible(Unknown Source) at java.awt.Dialog。 setVisible(Unknown Source) at org.pentaho.reporting.libraries.designtime.swing.CommonDialog.performEdit(CommonDialog.java:156) at org.pentaho.reporting.ui.datasources.jdbc.ui.JdbcDataSourceDialog.performConfiguration(JdbcDataSourceDialog.java :759) 在 org.pentaho.reporting.designer.core.actions.report.AddDataFactoryAction 的 org.pentaho.reporting.ui.datasources.jdbc.JdbcDataSourcePlugin.performEdit(JdbcDataSourcePlugin.java:67)。actionPerformed(AddDataFactoryAction.java:79) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing .DefaultButtonModel.setPressed(Unknown Source) at javax.swing.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased (未知源) 在 java.awt.AWTEventMulticaster.mouseReleased(未知源) 在 java.awt.Component.processMouseEvent(未知源) 在 javax.swing.JComponent.processMouseEvent(未知源) 在 java.awt.Component.processEvent(Unknown源)在 java.awt.Container.processEvent(未知源)在 java.awt.Component。dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent( Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source ) 在 java.awt.EventQueue.dispatchEvent(Unknown Source) 在 java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) 在 java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) 在 java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) 在java.awt.EventDispatchThread。java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) 的 pumpEvents(Unknown Source)

java.lang.NullPointerException 在 javax.swing.JTable.prepareRenderer(Unknown Source) 在 javax.swing.ToolTipManager$insideTimerAction.actionPerformed(Unknown Source) 在 javax.swing.JTable.getToolTipText(Unknown Source) 在 javax.swing.Timer。 fireActionPerformed(Unknown Source) at javax.swing.Timer$DoPostEvent.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt。 EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.Dialog$1.run(Unknown Source) at java.awt.Dialog java.awt.Dialog 的 java.security.AccessController.doPrivileged(Native Method) 的 $3.run(Unknown Source)。show(Unknown Source) at java.awt.Component.show(Unknown Source) at java.awt.Component.setVisible(Unknown Source) at java.awt.Window.setVisible(Unknown Source) at java.awt.Dialog.setVisible( Unknown Source) at org.pentaho.reporting.ui.datasources.jdbc.ui.JdbcDataSourceDialog$PreviewAction.actionPerformed(JdbcDataSourceDialog .java:141) 在 javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) 在 javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) 在 javax.swing.DefaultButtonModel 的 javax.swing.AbstractButton.fireActionPerformed(Unknown Source)。 setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.Component。processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl( Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source ) 在 java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) 在 java.awt.Container.dispatchEventImpl(Unknown Source) 在 java.awt.Window.dispatchEventImpl(Unknown Source) 在 java.awt.Component.dispatchEvent(Unknown Source) 在java.awt.EventDispatchThread 中的 java.awt.EventQueue.dispatchEvent(Unknown Source)。pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.Dialog$1.run(Unknown Source) at java.awt.Dialog$3。在 java.awt.Dialog.show(Unknown Source) at java.awt.Component.show(Unknown Source) at java.awt.Component.setVisible( Unknown Source) at java.awt.Window.setVisible(Unknown Source) at java.awt.Dialog.setVisible(Unknown Source) at org.pentaho.reporting.libraries.designtime.swing.CommonDialog.performEdit(CommonDialog.java:156)在 org.pentaho.reporting.ui.datasources.jdbc.JdbcDataSourcePlugin 的 org.pentaho.reporting.ui.datasources.jdbc.ui.JdbcDataSourceDialog.performConfiguration(JdbcDataSourceDialog.java:759)。performEdit(JdbcDataSourcePlugin.java:67) at org.pentaho.reporting.designer.core.actions.report.AddDataFactoryAction.actionPerformed(AddDataFactoryAction.java:79) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing。 AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.AbstractButton.doClick(Unknown Source) at javax.swing。 plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(未知源)在 java.awt.Component 的 javax.swing.JComponent.processMouseEvent(未知源)。processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(未知源) 在 java.awt.LightweightDispatcher.retargetMouseEvent(未知源) 在 java.awt.LightweightDispatcher.processMouseEvent(未知源) 在 java.awt.LightweightDispatcher.dispatchEvent(未知源) 在 java.awt.Container.dispatchEventImpl(未知源) ) 在 java.awt.Window.dispatchEventImpl(Unknown Source) 在 java.awt.Component.dispatchEvent(Unknown Source) 在 java.awt.EventQueue.dispatchEvent(Unknown Source) 在 java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) 在java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) 在 java.awt.EventDispatchThread。pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

0 投票
0 回答
178 浏览

pentaho - 在 Pentaho 报表设计器中使用查询指定 API 中的数据源

我是 Pentaho 报告的新手。我有一个关于指定 DataSource 的问题。有没有办法使用 Java 中的 API 指定数据源,并通过报表设计器在 .prpt 文件中指定查询?我希望能够在设计器中创建报告并使用测试数据源进行预览。但是我想在通过我的 web 应用程序部署时指定不同的连接/数据源。因此,我想从设计器中覆盖的唯一一件事是使用哪个连接,但使用报表设计器中指定的相同查询。

0 投票
1 回答
1751 浏览

html - 在 pentaho 报表设计器中嵌入 html

我想从我的网络应用程序中的页面生成 pdf 报告。我正在考虑为我们的报告使用 pentaho 报告设计器。

是否可以将 html 代码直接“粘贴”/嵌入到报告中?

我无法做到这一点\查找此功能的文档\示例。

谢谢

0 投票
2 回答
2633 浏览

web - 如何在 web 中嵌入 pentaho 报表设计器?

我想弄清楚如何在网页上嵌入 Pentaho Report Designer 报告。

我的意思不仅仅是打印 PRD 报告的结果——我实际上仍然希望使用 PRD 设计报告,而是在 Web 框架内。

有可能这样做吗?

谢谢

0 投票
2 回答
7765 浏览

sql - Pentaho Report Designer (PRD):在选择子句中使用参数

在我正在使用的报表中,我需要显示一个数据库表的四列的信息。该表的前三列是 SEX、AGE 和 NAME。其他 N 列(N 就像 100!)是问题,表格的每一行都表示该人对该问题的回答:

在我的报告中,我需要显示其中四列,其中前三列始终相同,第四列根据用户选择的选项而有所不同:

到目前为止,我已经创建了一个下拉参数(填充“Q1”、“Q2”、“Q3”等),用户可以在其中选择他想要比较的问题。我尝试在报告查询的 SELECT 子句中使用所选选项的值(例如“Q1”),但没有成功:

Pentaho Report Designer 没有显示任何错误,它只是没有显示问题列的任何值(其他列 -性别、年龄和姓名- 总是返回它们的值)

所以,我想让你知道:

  1. 我可以这样做吗?我的意思是,在 SELECT 子句中使用参数?
  2. 根据参数有没有其他方法有这个“通配符”列?

提前致谢!布鲁诺·伽马

0 投票
1 回答
1149 浏览

report - Making default value in Pentaho Report Designer

I have created a report out of Pentaho Report Designer. I uploaded the report on Pentaho User Console.

I have several dropdowns e.g. Order ID, Line Item ID, Date.

Once I select Order ID, Line Item ID is filtered and is displayed.

I created a 'All Line Item' value that displays all line item.

I want to make it as a default value.

How to have a default value in Report Designer? The drop downs are added using 'add parameter'. What settings do I need to have in Parameter of 'Line Item ID' to make 'All Line Item' as default value?

Thank you.