Question
Pegasystems Inc.
IN
Last activity: 20 Jun 2017 6:18 EDT
How to save PDF eForm locally instead of attaching it to the work object
The requirement is to show the generated PDF eForm on screen instead of attaching it to the work object/case as an attachment. To attach the eForm to the case/WO, we have a method "AttachEForm". Like wise do we have any such method to show/open/save the eForm directly without attaching it to the case?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Blue Rose Technologies GmbH
BE
Hi,
Try using Code-Pega-eForm.WriteEFormToFile activity.
Let me know if it helps.
Pegasystems Inc.
IN
I'm getting the run time exception "Property 'pyEForm' must have a non-null value" , when i use the method.
Virtusa IT Consulting
AE
Did you try with eform name as value in 'pyEform'?
Pegasystems Inc.
IN
Yes. But, it was saving the file to the server location instead of local machine. I need something like open the PDF in user browser to see & then the option to save like we save the general PDF file.
Virtusa IT Consulting
AE
Did you try 'Open URL in new Window' on click event?
Pegasystems Inc.
IN
My business requirement is to open the case attachment (i.e. when ever it got generated during the case processing or end of the assignment step after the PDF got generated) without attaching it to the case & then provide an option to the user to save it locally on their machines. Any work around is also highly appreciated, if we don't have proper solution.
Thanks
Pegasystems Inc.
IN
Hi
Can you share the screenshot of the activity steps that you designed to implement this ?
Pegasystems Inc.
IN
Hi santanu,
I have not implemented this. This is my business requirement.
The existing approach is : After the eForm got generated, it will be attached to the case & it will be treated as like any other attachment. This is not solving my customer requirement.
As i mentioned in my query, Once the eForm got generated it should prompt the user to save/open it locally on his machine not the server. The way Chrome browser asks the user when ever we download something from internet/site.
Let me know if you need any other info regarding this.
CTS
CA
pls try view activity Code-Pega-PDF View. pass byte array as input-->pop up appears to save the PDF rule
Pegasystems Inc.
IN
Hi Indumathy,
The approach you mentioned also not working. I tried to call this method before attaching the EForm to the case by passing pyEForm value of the generated EForm as PDF content.
mphasis
IN
Hi,
In the Code-Pega-PDF.View activity update the java step as below
String result=tools.sendFile(byteArray,pdfName,true,null,true);
This would open the pdf in a new tab with save/save as option.