You can use the renderPDFForms service in workbench. It throws two exceptions:
- SYSTEM EXCEPTION
I think if you are execuing java script on the server side and any exceptions comes up, it will be catched in one of the above exceptions.
Hope this helps.
Hi again Varun,
Thanks for replying to this issue.
In my setup I have to use Output (not Forms) however I believe that the issue remains the same on these two services.
If I do as you suggest (try to catch the JS exception with the two exceptions on the generatePdfOutput service) I get no exceptions inside LC. The generatePDFOutput service just finishes and I see the following in the log:
However the potential of a JS script error might be significant. Textfields or sub forms not showing up on the form is a big issue for the end user. However no chance of catching this and report this anywhere in LC?
I hope you understand what I mean - if not please don't hesitate to ask me
Thanks in advance
I believe the blog which I attached earlier should be useful in this case.
If not, request you to attach your sample form?