cancel
Showing results for 
Search instead for 
Did you mean: 

PDF loading issue

Former Member
0 Kudos

Hello Everyone,

Issue:

PDF not loading on first click but loads properly on refreshing the same page.

Scenario:

I am creating a PDF using PDF action blocks and calling the PDF on click of a button.

On click of button, I am calling the following url format in window.open command:

"http://"+location.host+"//XMII/Runner?Transaction=<TransactionPath>&<Param1Name>="+<Param1Value>+"&<Param2Name>="+<Param2Value>+"&OutputParameter=<PDFOutParam>&Content-Type=application/pdf&isBinary=true"

Pls provide some solution.

Regards,

Minakshi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Minakshi,

It could be possible that a JavaScript error is occurring just before window.open method. In IE or chrome, you could press F12 (developer tool) and check in console if that's the case.

You can also use the "Network" tab in the developer tool to see is the url is even being called or not.

Try running the url in the browser directly, see if gives you the expected results.

Lastly you could try replacing window.open() with window.location.href = "your url" and see if it helps.


"http://"+location.host+"//XMII/Runner?Transaction=<TransactionPath>&<Param1Name>="+<Param1Value>+"&<Param2Name>="+<Param2Value>+"&OutputParameter=<PDFOutParam>&Content-Type=application/pdf&isBinary=true"

Since you are calling the trasnaction in the same MII server,  you do not have to use http://serverName.. Just give the URL starting from "/XMII/Runner?Transaction=.........." and it should work.

Regards

Tufale Ashai