Export to excel in embeded penthao report

256 views
Skip to first unread message

sharewi...@gmail.com

unread,
Jan 21, 2016, 8:15:46 AM1/21/16
to pivot4j-list
Hello All,

I am embedding pivot4j file in pentaho using pivot4j component. I want to have the export button to get displayed along with the report to export the report into excel and pdf.

How can I do that?

Xavier Cho

unread,
Jan 26, 2016, 8:27:17 AM1/26/16
to pivot4j-list
Hi Ravindra,

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.

Please let me know if you need further assistance.

Cheers,
Xavier

2016년 1월 21일 목요일 오후 10시 15분 46초 UTC+9, Ravindra Gullapalli 님의 말:

Ravindra Gullapalli

unread,
Jan 27, 2016, 12:24:31 PM1/27/16
to pivot4j-list
Hi Xavier,

Thanks for your reply. I did a little more than you suggested and finally got export button working in embeded report.

I used PF tags instead of PFE tags as I was getting "UI layout initialization error".

Attaching file for your reference if any improvement is needed.

Once again thank you so much for the support.
embed.xhtml
Reply all
Reply to author
Forward
0 new messages