嵌入式 pivot4j 报告中的导出功能
Export functionality in embedded pivot4j report
我正在使用 pentaho 中的 pivot4j 组件嵌入一个 pivot4j 报告。
是否可以像设计报告时那样导出到 excel 或 PDF 工具?
如果可以,我该怎么做?
从开发者那里得到了解决方案。按原样发自 URL https://groups.google.com/d/msg/pivot4j-list/WQ91bXbOdbs/K_eW6VZqAwAJ
It's something doable but it will require a bit of custom modification
of the view template. When you embed a Pivot4J report, embed.xhtml is
used as the view template instead of view.xhtml. If you compare them
with each other, you can that the former is just a minimal version of
the latter.
So you can probably copy the necessary components related to the
export feature (look for 'mi-export-*') and paste into the embeded
template and modify it if necessary.
我正在使用 pentaho 中的 pivot4j 组件嵌入一个 pivot4j 报告。
是否可以像设计报告时那样导出到 excel 或 PDF 工具?
如果可以,我该怎么做?
从开发者那里得到了解决方案。按原样发自 URL https://groups.google.com/d/msg/pivot4j-list/WQ91bXbOdbs/K_eW6VZqAwAJ
It's something doable but it will require a bit of custom modification of the view template. When you embed a Pivot4J report, embed.xhtml is used as the view template instead of view.xhtml. If you compare them with each other, you can that the former is just a minimal version of the latter.
So you can probably copy the necessary components related to the export feature (look for 'mi-export-*') and paste into the embeded template and modify it if necessary.