XAgent Concept :
There will be 2 xpages, one for the display(Generate Report is placed on this Xpage) and the other xpage is set to be hidden with rendered= false. IN the 2nd Xpage, "BeforeRenderResponse" event we can call Apache POI to generate Excel.
I am using Apache POI for generating Excel reports. Link that generates Excel works fine only once, if I use the "Full Update " for the "Onclick" event.
After the first time, If I click on the link to generate Excel , it won't do anything. The page is submitted to the server, but it won't load the whole page back correctly.
I have to refresh the whole page for the link to work again.
To avoid this,I want to use "No Submission" for the link and call the xpage which generates the Excel. Here I am facing a challenge to pass the parameters to the intermediate Xpage. I am passing the field1 value through the parameter, but it comes as NULL.
What is the best way to pass the parameters from the display Xpage to the intermediate xpage?
<xp:link escape="true" text="Generate Report"
Thanks in Advance