Question
Itau Unibanco
BR
Last activity: 1 Feb 2019 2:28 EST
issues with downloading using the PrintWork activity
Hello,
I'm trying to download a section in PDF format, using the PrintWork activity,
I created a Harness action on the button;
then I linked the section on the Harness;
finally I called the activity PrintWork;
but when I run the case and click on the Button, open a pop-up window but it's not downloading the section.
In attach, I'm showing the process i said above
Is missing something?
***Edited by Moderator: Pallavi to update platform capability tags***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Areteans
IN
Hi,
PrintWork Activity will not download the section but only displays the PrintView harness. you may need to use the browser print option Ctrl+P to download the file.
Thanks,
Bala
Itau Unibanco
BR
Thank you very much Bala,
Is there a way to develope on the display a Icon option to download the file using PrintWork activity?
Regards,
Douglas
Areteans
IN
Yes, we can develop the download functionality for button/icon but it is not possible with PrintWork Activty.
May I Know your exact requirement about what you want to download? So that I can help with correct approach.
Itau Unibanco
BR
I want to download a Section in PDF format by a Custom button, I'm using PEGA 7.2.2 and I saw on this link: https://community.pega.com/support/support-articles/links-pdf-docs-attached-ootb-pxcreatepdf-arent-working that the OOTB pxCreatePDF are not functioning with this Version.
Regards,
Douglas
Areteans
IN
HI Douglas,
Could you try below approach and let me know if meets your requirement,
1)On click of button add a click event with action OpenURLinWindow and call an Activity(Say Act1)
2) Add your section within a HTML rule as "<pega:include name="YouSectionName" type="Rule-HTML-Section"/>"
3) Use the HTML rule as the "StreamName" parameter while calling the activity "HTMLToPDF" in your activity(ACT1).
4) pass "<<RequiredPDFName>>.pdf" as parameter to Param.PDFName for .view activity
or
you can use pyViewAsPDF activity for your requirement.
Thanks,
Bala
Itau Unibanco
BR
Hello Balla,
I did, but it's showing a screen view with this error!
I trace the process to try to see what's going on, but I didn't find it yet.
Hello Balla,
I did, but it's showing a screen view with this error!
I trace the process to try to see what's going on, but I didn't find it yet.
Status | fail |
Message | There has been an issue; please consult your system administrator |
Operator ID | M197976 |
Requestor ID | HC0AB1639558DBD98975D5D48B27A5220 |
Thanks a lot!
Areteans
IN
Could you capture Tracer/pegarules logs and attach. I will have look at them once.
Itau Unibanco
BR
Hello Bala,
the attachment shows the Tracer on all the case
When I trace just thee Activity, it runs good.
But when I ran all the case, There is a Fail on the Step Status on Activity.
Regards
Areteans
IN
Could you share me the GeneratePDFData Activity steps(in a doc or screenshot) which you have created. I will replicate and verify and at my end.
-Bala