on 04-15-2014 6:03 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
7 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.