How to display a PDF (FOP Control) in “PAGEPOPUP” mode?
I have problems with POPUP blockers of browsers.
Thank You.
Geraldo Valencia
How to display a PDF (FOP Control) in “PAGEPOPUP” mode?
I have problems with POPUP blockers of browsers.
Thank You.
Geraldo Valencia
Hi Geraldo,
in the current versions we added a switch “usepagepopup” to the cisconfig.xml, which advices the NJX framework to use page pop-ups for all NJX modal dialogs.
But PDF documents are still opened in own browser windows. Showing documents automatically in page pop-up is something not all our NJX customers like. That’s why we did not include it in the “usepagepopup” switch for the NJX modal dialogs.
The answer to your question: Currently there is no configuration setting to open PDFs of the FOP Control in page pop-ups. But your question made clear, that there is a need to avoid browser windows for documents.
Best Regards,
Christine
Thank you Christine for your help.
Best Regards!!
For those who would like to learn more about PDF support, here are some hints:
NJX supports 2 ways to use PDF with Natural for AJAX:
REPORT control (see the Natural for AJAX documentation):
That’s the way which requires more programming on the Natural side. You have to fill the report yourself at runtime.
The njxdemos contain an example for this: Start the njxdemos and select Reporting/Report.
Adapter Listener (com.softwareag.cis.server.adapterlistener.PDFFOPListener)
That’s the way which requires nearly no programming on the Natural side. You do the report design at design time: Create an PDF Print Form layout in Layout Painter.
NJX812 contains an example for this. Since NJX812 is not available yet, please find attached a simple example to get started:
Explanation:
How to run it:
Hi David,
in your post you simply copied the text from my earlier post PDF/FOP with Natural For Ajax - Adabas-Natural - Software AG Tech Community & Forums
without adding any comments from your side.
What was your intention? Was it to add a link to my earlier post? Or did you find a way to open FOP pages as PAGEPOPUPs?
Best Regards,
Christine