Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Excel Export Issue

 
Brett Lewinski
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello -

My team is currently working on a project where we need to export some search results from a jsr portlet into excel. The search results portlet has a Excel Export button and when the user clicks this it does a form post to the server. The server is getting the data we need to export however the data is going through setRenderParameter and it is hitting some sort of size limit thus causing the excel export to fail. Does anyone know a way around this or perhaps another way to accomplish this?

Thanks in advance!
 
Brett Lewinski
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We got this workign by doing the following; figured I woudl post it if somepone else comes across it.
The issue was solved by using the PortletSession setAttribute; see the snippet below:

PortletSession ps= request.getPortletSession();
ps.setAttribute("data",data);

Thanks and Good Luck!
 
Rutvij A Shah
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also make sure to flush it from session in doView()
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic